mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-07-21 03:58:17 -06:00
PR-512606: updating package and moving Card.stories.tsx to components folder.
This commit is contained in:
19
src/components/Card/Card.stories.tsx
Normal file
19
src/components/Card/Card.stories.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import React from '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 Meta<typeof Card>;
|
||||
|
||||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-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
|
||||
Basic.args = {
|
||||
title: 'Test Title',
|
||||
children: <p>Test Content</p>,
|
||||
};
|
Reference in New Issue
Block a user