|
1 | 1 | import React from 'react'; |
2 | 2 |
|
3 | 3 | import { ComponentStory, ComponentMeta } from '@storybook/react'; |
4 | | -import { IonBody, IonBodyProps } from '../../components/typhography'; |
| 4 | +import { IonBody } from '../../components/typhography'; |
| 5 | +import { IonBodyInterface } from '../../components/typhography/typhography.types'; |
5 | 6 |
|
6 | 7 | export default { |
7 | 8 | title: 'Ion/Design Tokens/Typhopraphy/Body', |
8 | 9 | component: IonBody, |
9 | 10 | } as ComponentMeta<typeof IonBody>; |
10 | 11 |
|
11 | | -const Template: ComponentStory<typeof IonBody> = (args: IonBodyProps) => ( |
| 12 | +const Template: ComponentStory<typeof IonBody> = (args: IonBodyInterface) => ( |
12 | 13 | <IonBody {...args} /> |
13 | 14 | ); |
14 | 15 |
|
@@ -50,19 +51,19 @@ export const IonBodyColorSecondary = Template.bind({}); |
50 | 51 | IonBodyColorSecondary.storyName = 'Color: Secondary'; |
51 | 52 | IonBodyColorSecondary.args = { |
52 | 53 | label: 'Ion React', |
53 | | - color: 'secondary', |
| 54 | + colorScheme: 'secondary', |
54 | 55 | }; |
55 | 56 |
|
56 | 57 | export const IonBodyColordarkPrimary = Template.bind({}); |
57 | 58 | IonBodyColordarkPrimary.storyName = 'Color: dark-primary'; |
58 | 59 | IonBodyColordarkPrimary.args = { |
59 | 60 | label: 'Ion React', |
60 | | - color: 'dark-primary', |
| 61 | + colorScheme: 'dark-primary', |
61 | 62 | }; |
62 | 63 |
|
63 | 64 | export const IonBodyColordarkSecondary = Template.bind({}); |
64 | 65 | IonBodyColordarkSecondary.storyName = 'Color: dark-secondary'; |
65 | 66 | IonBodyColordarkSecondary.args = { |
66 | 67 | label: 'Ion React', |
67 | | - color: 'dark-secondary', |
| 68 | + colorScheme: 'dark-secondary', |
68 | 69 | }; |
0 commit comments