mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
@@ -60,7 +60,7 @@ Use the `disabled` prop to disable the RadioGroup.
|
|||||||
::component-card
|
::component-card
|
||||||
---
|
---
|
||||||
baseProps:
|
baseProps:
|
||||||
options: [{ value: 'email', label: 'Email' }, { value: 'sms', label: 'Phone (SMS)' }, { value: 'push', label: 'Push notification' }]
|
options: [{ value: 'email', label: 'Email' }, { value: 'sms', label: 'Phone (SMS)' }, { value: 'push', label: 'Push notification', disabled: true }]
|
||||||
modelValue: 'sms'
|
modelValue: 'sms'
|
||||||
props:
|
props:
|
||||||
disabled: true
|
disabled: true
|
||||||
@@ -68,7 +68,7 @@ props:
|
|||||||
::
|
::
|
||||||
|
|
||||||
::callout{icon="i-heroicons-light-bulb"}
|
::callout{icon="i-heroicons-light-bulb"}
|
||||||
This prop also work on the Radio component.
|
This prop also work on the Radio component and you can set the `disabled` field in the `options` to disable a specific Radio.
|
||||||
::
|
::
|
||||||
|
|
||||||
### Label
|
### Label
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
:label="option.label"
|
:label="option.label"
|
||||||
:model-value="modelValue"
|
:model-value="modelValue"
|
||||||
:value="option.value"
|
:value="option.value"
|
||||||
:disabled="disabled"
|
:disabled="option.disabled || disabled"
|
||||||
:ui="uiRadio"
|
:ui="uiRadio"
|
||||||
@change="onUpdate(option.value)"
|
@change="onUpdate(option.value)"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user