Skip to content

Commit

Permalink
feat(radio): add example with helptext and errortext
Browse files Browse the repository at this point in the history
  • Loading branch information
anitavincent committed Nov 22, 2023
1 parent 069d183 commit c2038e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/components/src/radio/stories/radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,23 @@ export function Help() {
<Radio value="opt4">Another pen</Radio>
</RadioGroup>

<RadioGroup
label="Optional group"
errorText="Something is wrong"
helpText="Pen pinapple apple pen"
>
<Radio value="opt1">Pen</Radio>
<Radio value="opt2">Pineapple</Radio>
<Radio value="opt3">Apple</Radio>
<Radio value="opt4">Another pen</Radio>
</RadioGroup>


<RadioGroup
label="Optional group (optional)"
errorText="Something is wrong"
helpText="Pen pinapple apple pen"
error
>
<Radio value="opt1">Pen</Radio>
<Radio value="opt2">Pineapple</Radio>
Expand Down

0 comments on commit c2038e8

Please sign in to comment.