mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
Align v10.54 (#1133)
* chore(deps-dev): bump carbon-components to v10.54.0 * feat(progress-bar): add size prop * docs(progress-bar): add "Small size" example * docs(progress-bar): add descriptions * refactor(structured-list): remove monkey patch * feat(radio-button-group): add hideLegend prop * docs(radio-button): add "Hidden legend" example
This commit is contained in:
parent
faeee2b1a1
commit
a3d116215d
13 changed files with 90 additions and 20 deletions
|
@ -41,6 +41,18 @@ Use the named "legendText" slot to customize the legend text.
|
|||
<RadioButton labelText="Pro (128 GB)" value="pro" />
|
||||
</RadioButtonGroup>
|
||||
|
||||
### Hidden legend
|
||||
|
||||
It's recommended that you provide a legend for accessibility.
|
||||
|
||||
Use `hideLegend` to visually hide the legend text.
|
||||
|
||||
<RadioButtonGroup hideLegend legendText="Storage tier (disk)" selected="standard">
|
||||
<RadioButton labelText="Free (1 GB)" value="free" />
|
||||
<RadioButton labelText="Standard (10 GB)" value="standard" />
|
||||
<RadioButton labelText="Pro (128 GB)" value="pro" />
|
||||
</RadioButtonGroup>
|
||||
|
||||
### Reactive example
|
||||
|
||||
Use the `selected` prop to bind and update the selected value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue