mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs(radio-button): simplify reactive example (#1012)
* docs(radio-button): simplify reactive radio button example * docs(radio-button): rename to "Reactive example"
This commit is contained in:
parent
e5f77aa614
commit
58de79d66b
3 changed files with 35 additions and 38 deletions
|
@ -41,11 +41,11 @@ Use the named "legendText" slot to customize the legend text.
|
|||
<RadioButton labelText="Pro (128 GB)" value="pro" />
|
||||
</RadioButtonGroup>
|
||||
|
||||
### Programmatic usage
|
||||
### Reactive example
|
||||
|
||||
Bind the selected value using the `selected` prop.
|
||||
Use the `selected` prop to bind and update the selected value.
|
||||
|
||||
<FileSource src="/framed/RadioButton/ProgrammaticRadioButton" />
|
||||
<FileSource src="/framed/RadioButton/RadioButtonReactive" />
|
||||
|
||||
### Left-aligned label text
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue