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:
Eric Liu 2022-01-16 15:06:29 -08:00 committed by GitHub
commit 58de79d66b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 38 deletions

View file

@ -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