feat(RadioGroup): handle horizontal orientation (#74)

This commit is contained in:
Silver343
2024-04-22 13:14:51 +01:00
committed by GitHub
parent e1ab903109
commit 814437255e
6 changed files with 136 additions and 75 deletions

View File

@@ -53,6 +53,20 @@ props:
This prop also work on the Radio component.
::
### Orientation
You can change the orientation of the divider by setting the `orientation` prop to `horizontal` or `vertical`. Defaults to `vertical`.
::component-card
---
baseProps:
options: [{ value: 'email', label: 'Email' }, { value: 'sms', label: 'Phone (SMS)' }, { value: 'push', label: 'Push notification' }]
modelValue: 'sms'
props:
orientation: 'horizontal'
---
::
### Disabled
Use the `disabled` prop to disable the RadioGroup.