Skip to content

Commit

Permalink
docs(sbb-radio-button, sbb-radio-button-panel): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Jul 15, 2024
1 parent 01b58fa commit dbc3bb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/elements/radio-button/radio-button-panel/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ The `allowEmptySelection` property allows user to deselect the component.

## Style

The component has three different sizes, which can be changed using the `size` property (`m`, which is the default and `s`).
If used inside a `sbb-radio-button-group`, the `size` will be inherited from it.

```html
<sbb-radio-button-panel size="s">Size</sbb-radio-button-panel>
```

The component's label can be displayed in bold using the `sbb-text--bold` class on a wrapper tag:

```html
Expand Down
2 changes: 1 addition & 1 deletion src/elements/radio-button/radio-button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The `allowEmptySelection` property allows user to deselect the component.
## Style

The component has three different sizes, which can be changed using the `size` property (`m`, which is the default, `s` and `xs`).
If used inside a `sbb-radio-button-group`, the `size` will be inherited from the group.
If used inside a `sbb-radio-button-group`, the `size` will be inherited from it.

```html
<sbb-radio-button value="small" size="s">Size</sbb-radio-button>
Expand Down

0 comments on commit dbc3bb2

Please sign in to comment.