forked from glints-dev/glints-aries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollapsibleStory.tsx
45 lines (40 loc) · 1.05 KB
/
CollapsibleStory.tsx
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 * as React from 'react';
import StorybookComponent from '../StorybookComponent';
import Collapsible from '../../src/Display/Collapsible';
const props = {
Collapsible: [
{
name: 'label',
type: 'string',
defaultValue: '',
possibleValue: 'any',
require: 'yes',
description: 'Sets title for Collapsible.',
},
{
name: 'isOpen',
type: 'boolean',
defaultValue: <code>true</code>,
possibleValue: <code>true | false</code>,
require: 'no',
description: 'Collapsing as default.',
},
],
};
const CollapsibleStory = () => (
<StorybookComponent
title="Collapsible"
code="import { Collapsible } from 'glints-aries'"
propsObject={props}
usage={`<Collapsible label="Personal Detail">
...
</Collapsible>`}
>
<Collapsible
label="Personal Detail"
>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
</Collapsible>
</StorybookComponent>
);
export default CollapsibleStory;