-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ItemSelector component #33
Conversation
Preview is ready. |
import {ItemSelector} from '../ItemSelector'; | ||
|
||
export default { | ||
title: 'Components/AdaptiveTabs', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why adaptive tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
]; | ||
|
||
const DefaultTemplate: Story = (args) => { | ||
const [value, setValue] = useState<string[]>([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use story args update instead, like
import {useArgs} from '@storybook/client-api';
const Template: ComponentStory<typeof ItemSelector> = (args) => {
const [, setStoryArgs] = useArgs();
return <ItemSelector {...args} onUpdate={(value) => setStoryArg(value)}/>
}
No description provided.