Skip to content

Commit

Permalink
docs(Checkbox/Radio): update example description
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed May 10, 2024
1 parent cc5cf04 commit f3083ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ propComponents: ['Checkbox']

### Label wraps

When the input is wrapped in a label, larger area can be clicked to check the box, including the space between the checkbox and its description.
You can expand the clickable area of a checkbox so that it spans wider than the checkbox label by adding the `isLabelWrapped` property. This allows users to select a checkbox by clicking the checkbox itself, the label, or the area between the checkbox and the label.

```ts file="./CheckboxLabelWraps.tsx"

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Radio/examples/Radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ouia: true

### Label wraps

When the input is wrapped in a label, larger area can be clicked to check the radio, including the space between the radio and its description.
You can expand the clickable area of a radio so that it spans wider than the radio label by adding the `isLabelWrapped` property. This allows users to select a radio by clicking the radio itself, the label, or the area between the radio and the label.

```ts file="./RadioLabelWraps.tsx"

Expand Down

0 comments on commit f3083ea

Please sign in to comment.