mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs(radio-button): add disabled buttons example
This commit is contained in:
parent
4c8c9be28e
commit
fb05553c35
1 changed files with 8 additions and 0 deletions
|
@ -55,6 +55,14 @@ Bind the selected value using the `selected` prop.
|
||||||
<RadioButton labelText="Pro (128 GB)" value="pro" />
|
<RadioButton labelText="Pro (128 GB)" value="pro" />
|
||||||
</RadioButtonGroup>
|
</RadioButtonGroup>
|
||||||
|
|
||||||
|
### Disabled buttons
|
||||||
|
|
||||||
|
<RadioButtonGroup labelPosition="left" legendText="Storage tier (disk)" selected="standard">
|
||||||
|
<RadioButton disabled labelText="Free (1 GB)" value="free" />
|
||||||
|
<RadioButton labelText="Standard (10 GB)" value="standard" />
|
||||||
|
<RadioButton disabled labelText="Pro (128 GB)" value="pro" />
|
||||||
|
</RadioButtonGroup>
|
||||||
|
|
||||||
### Vertical orientation
|
### Vertical orientation
|
||||||
|
|
||||||
<RadioButtonGroup orientation="vertical" legendText="Storage tier (disk)" selected="standard">
|
<RadioButtonGroup orientation="vertical" legendText="Storage tier (disk)" selected="standard">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue