Replies: 1 comment 3 replies
-
Try: import { Meta, Story } from '@storybook/react/types-6-0';
...
const Template: Story<Question> = (props) => <QuestionCard {...props} />;
export const DefaultQuestionCard = Template.bind({});
DefaultQuestionCard.args = {
fieldType: 'text',
question: 'Lorem ipsum dolor sit amet?',
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! How can I leverage typescript to accurately detect what my
args
should be?E.g. if my interface is:
in the below component, I'm currently not getting any errors stating that I'm missing the
id
field for theDefaultQuestionCard
template. Thanks!Beta Was this translation helpful? Give feedback.
All reactions