-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add RadioGroup isOptional explanation (#1890)
- Loading branch information
1 parent
2eeea95
commit a4c11a6
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
packages/odyssey-storybook/src/components/odyssey-mui/RadioGroup/RadioGroup.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { | ||
Canvas, | ||
Meta, | ||
Title, | ||
Subtitle, | ||
Description, | ||
Primary, | ||
Controls, | ||
Stories, | ||
} from "@storybook/addon-docs"; | ||
import { Story } from "@storybook/blocks"; | ||
import * as RadioGroupStories from "./RadioGroup.stories"; | ||
|
||
<Meta of={RadioGroupStories} /> | ||
|
||
<Title of={RadioGroupStories} /> | ||
<Subtitle of={RadioGroupStories} /> | ||
<Description of={RadioGroupStories} /> | ||
<Primary of={RadioGroupStories} /> | ||
|
||
Note that `RadioGroup` does not include an `isOptional` prop, since a `RadioGroup` should | ||
only be used if it's required. If you need similar functionality that supports optionality, | ||
use a `Checkbox` or `CheckboxGroup` instead. | ||
|
||
<Controls /> | ||
<Stories /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters