|
1 |
| -import { Canvas, Meta, Markdown } from '@storybook/blocks'; |
2 |
| -import Specifications{{> ComponentName }} from '@ovhcloud/ods-{{> component-dir}}/src/components/{{> component-name }}/documentation/spec.md?raw'; |
3 |
| -import { Banner } from '../../banner'; |
4 |
| -import { DocNavigator } from '../../doc-navigator'; |
| 1 | +import { Canvas, Meta } from '@storybook/blocks'; |
5 | 2 | import * as {{> ComponentName }}Stories from './{{> component-name }}.stories';
|
6 |
| -import { LINK_ID } from '../../zeroheight'; |
| 3 | +import { Banner } from '../../../src/components/banner/Banner'; |
| 4 | +import { BestPractices } from '../../../src/components/bestPractices/BestPractices'; |
| 5 | +import { Heading } from '../../../src/components/heading/Heading'; |
| 6 | +import { IdentityCard } from '../../../src/components/identityCard/IdentityCard'; |
| 7 | +import { StorybookLink } from '../../../src/components/storybookLink/StorybookLink'; |
| 8 | +import { ATOMIC_TYPE } from '../../../src/constants/atomicDesign'; |
| 9 | +import { ODS_COMPONENTS_TITLE, STORY } from '../../../src/constants/meta'; |
7 | 10 |
|
8 | 11 | <Meta of={ {{> ComponentName }}Stories } name='Documentation' />
|
9 | 12 |
|
10 | 13 | <Banner of={ {{> ComponentName }}Stories } />
|
11 | 14 |
|
12 |
| -# Overview |
13 |
| - |
14 |
| -TODO Some text about the component |
| 15 | +_**{{> ComponentName }}** TODO some text about the component_ |
15 | 16 |
|
16 | 17 | <Canvas of={ {{> ComponentName }}Stories.Default } sourceState='none' />
|
17 | 18 |
|
18 |
| -<DocNavigator of={ {{> ComponentName }}Stories } linkId={ LINK_ID.{{> COMPONENT_NAME }} } /> |
| 19 | +<Heading label="Overview" level={ 2 } /> |
| 20 | + |
| 21 | +<IdentityCard aliases={ [] } |
| 22 | + atomicType={ ATOMIC_TYPE.TODO } |
| 23 | + figmaLink="TODO" |
| 24 | + githubUrl="https://github.com/ovh/design-system/tree/master/packages/ods/src/components/{{> component-name }}" |
| 25 | + name="{{> ComponentName }}" |
| 26 | + relatedComponents={ [] }> |
| 27 | + TODO some text about the component. |
| 28 | +</IdentityCard> |
| 29 | + |
| 30 | +<Heading label="Anatomy" level={ 2 } /> |
| 31 | + |
| 32 | +TODO picture |
| 33 | + |
| 34 | +<Heading label="Usage" level={ 2 } /> |
| 35 | + |
| 36 | +TODO if relevant |
| 37 | + |
| 38 | +<Heading label="Dos & Don'ts" level={ 3 } /> |
19 | 39 |
|
20 |
| -<Markdown>{ Specifications{{> ComponentName }} }</Markdown> |
| 40 | +<BestPractices |
| 41 | + donts={[]} |
| 42 | + dos={[]} |
| 43 | +/> |
21 | 44 |
|
22 |
| -# Style customization [IF RELEVANT] |
| 45 | +<Heading label="Placement" level={ 2 } /> |
23 | 46 |
|
24 |
| -You can add your own style on the {{> component-name }} element using the part `{{> component-name }}`. |
| 47 | +TODO if relevant |
25 | 48 |
|
26 |
| -Custom {{> component-name }} css: |
| 49 | +<Heading label="Behavior" level={ 2 } /> |
27 | 50 |
|
28 |
| -<Canvas of={ {{> ComponentName }}Stories.CustomCSS } sourceState='shown'/> |
| 51 | +TODO if relevant |
29 | 52 |
|
30 |
| -# Examples |
| 53 | +<Heading label="Variation" level={ 2 } /> |
31 | 54 |
|
32 |
| -## Default |
| 55 | +<Heading label="Variant" level={ 3 } /> |
33 | 56 |
|
34 |
| -<Canvas of={ {{> ComponentName }}Stories.Default } sourceState='shown' /> |
| 57 | +TODO if relevant |
35 | 58 |
|
36 |
| -## [Other attribute] |
37 |
| -<Canvas of={ {{> ComponentName }}Stories.Default } sourceState='shown' /> |
| 59 | +<Heading label="Accessibility" level={ 2 } /> |
38 | 60 |
|
39 |
| -... |
| 61 | +TODO if relevant |
0 commit comments