Skip to content

Commit

Permalink
chore: Radio story
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Mar 22, 2024
1 parent c6a4d6a commit 3eb1cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storybook Tests Radio Basic 1`] = `
exports[`Storybook Tests Radio Default 1`] = `
.c2 {
display: grid;
grid-template-columns: auto 1fr;
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/components/Radio/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ const LayoutDiv = styled.div`
gap: ${({ theme }) => px(theme.spacing[24])};
`

export const Basic: StoryObj<typeof Radio> = {
render: function Render() {
export const Default: StoryObj<typeof Radio> = {
render: function Render(args) {
const options = ['1', '2', '3']
const [value, setValue] = useState(options[0])

return (
<LayoutDiv>
<RadioGroup
label={'label'}
name={'name'}
{...args}
value={value}
onChange={setValue}
>
Expand Down

0 comments on commit 3eb1cf5

Please sign in to comment.