mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-07-21 20:18:18 -06:00
PR-712281: updating packes and updating some storybook functions.
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { StoryFn, Meta } from '@storybook/react';
|
||||
import { Card } from '@components';
|
||||
|
||||
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
||||
export default {
|
||||
title: 'Example/Card',
|
||||
component: Card,
|
||||
} as ComponentMeta<typeof Card>;
|
||||
} as Meta<typeof Card>;
|
||||
|
||||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
||||
const Template: ComponentStory<typeof Card> = (args) => <Card {...args} />;
|
||||
const Template: StoryFn<typeof Card> = (args) => <Card {...args} />;
|
||||
|
||||
export const Basic = Template.bind({});
|
||||
// More on args: https://storybook.js.org/docs/react/writing-stories/args
|
||||
|
Reference in New Issue
Block a user