-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
45 lines (39 loc) · 1.35 KB
/
index.stories.tsx
File metadata and controls
45 lines (39 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import Blockquote from '#ui/Common/Blockquote';
type Story = StoryObj<typeof Blockquote>;
type Meta = MetaObj<typeof Blockquote>;
export const Default: Story = {
args: {
children: (
<>
“An expert is a person who has made all the mistakes that can be made in
a very narrow field.”
<cite>Niels Bohr</cite>
</>
),
},
};
export const WithoutAttribution: Story = {
args: {
children:
'“Commander Keen soared through the stars, leaving behind a galaxy of memories, adventure, and boundless imagination. In the realm of gaming, his farewell echoes as a timeless voyage into the hearts of those who dare to dream and explore the unknown.”',
},
};
export const Nested: Story = {
args: {
children: (
<>
“Words can be like X-rays, if you use them properly—they’ll go through
anything. You read and you’re pierced.”
<Blockquote>
“A thinker sees his own actions as experiments and questions--as
attempts to find out something. Success and failure are for him
answers above all.”
<cite>Friedrich Nietzsche</cite>
</Blockquote>
<cite>Aldous Huxley, Brave New World</cite>
</>
),
},
};
export default { component: Blockquote } as Meta;