/
Jafar
/
production-project
Обзор
Документация
Войти
/
Jafar
/
production-project
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/shared/ui/Code/Code.stories.tsx
29 строк
874 B
Jafar05
add article components
29 авг 2023, 07:15
29 авг 2023, 07:15
000d3b0
Код
Авторство
О чём код?
import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Code } from './Code'; export default { title: 'shared/Code', component: Code, argTypes: { backgroundColor: { control: 'color' }, }, } as ComponentMeta<typeof Code>; const Template: ComponentStory<typeof Code> = (args) => <Code {...args} />; export const Normal = Template.bind({}); Normal.args = { text: 'export default {\n' + ' title: \'shared/Code\',\n' + ' component: Code,\n' + ' argTypes: {\n' + ' backgroundColor: { control: \'color\' },\n' + ' },\n' + '} as ComponentMeta<typeof Code>;\n' + '\n' + 'const Template: ComponentStory<typeof Code> = (args) => <Code {...args} />;\n' + '\n' + 'export const Normal = Template.bind({});', };