File tree Expand file tree Collapse file tree
packages/ui-components/Containers/Article Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import type { Meta as MetaObj , StoryObj } from '@storybook/react' ;
2+
3+ import Article from '.' ;
4+
5+ type Story = StoryObj < typeof Article > ;
6+ type Meta = MetaObj < typeof Article > ;
7+
8+ const Sidebar = ( ) => (
9+ < div className = "text-center" >
10+ < h3 > Sidebar</ h3 >
11+ < ul >
12+ < li > Navigation Item 1</ li >
13+ < li > Navigation Item 2</ li >
14+ < li > Navigation Item 3</ li >
15+ < li > Navigation Item 4</ li >
16+ </ ul >
17+ </ div >
18+ ) ;
19+
20+ export const Default : Story = {
21+ args : {
22+ children : (
23+ < >
24+ < Sidebar />
25+ < div >
26+ < main >
27+ < p >
28+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
29+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
30+ </ p >
31+ </ main >
32+ < Sidebar />
33+ </ div >
34+ </ >
35+ ) ,
36+ } ,
37+ } ;
38+
39+ export default { component : Article } as Meta ;
You can’t perform that action at this time.
0 commit comments