♻️(react) migrate ArgsTable to ArgTypes and rework imports
Storybook was emitting warnings errors about the fact that ArgsTable is deprecated, and also I rewrote imports as those are not the one used in the doc anymore, this will prevent breaking changes in the upcoming upgrades.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Canvas, Meta, Story, Source, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Canvas, Meta, Story, ArgTypes } from '@storybook/blocks';
|
||||
import * as Stories from './index.stories';
|
||||
import { Checkbox } from './index';
|
||||
|
||||
<Meta of={Stories}/>
|
||||
|
||||
@@ -84,6 +85,10 @@ You can also define `state`, `text` props on the group component
|
||||
<Story id="components-forms-checkbox--group-success"/>
|
||||
</Canvas>
|
||||
|
||||
### Props
|
||||
|
||||
<ArgTypes of={Checkbox} />
|
||||
|
||||
## Design tokens
|
||||
|
||||
Here are available custom design tokens.
|
||||
|
||||
Reference in New Issue
Block a user