forked from coingaming/moon-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.tsx
55 lines (53 loc) · 1.62 KB
/
loader.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
46
47
48
49
50
51
52
53
54
55
import Preview from '../../components/codePreview/Preview';
import ComponentPageDescription from '../../components/ComponentPageDescription';
import DeprecationWarning from '../../components/facing/DeprecationWarning';
import PropsTable from '../../components/PropsTable';
import Colours from '../../public/examples/loader/Colours';
import Default from '../../public/examples/loader/Default';
import Sizes from '../../public/examples/loader/Sizes';
import useExamples from '../../utils/useExamples';
const PageLoader = () => {
const examples = useExamples('loader');
return (
<>
<ComponentPageDescription title="Loader">
<DeprecationWarning href="/core/loader" name="Loader" />
</ComponentPageDescription>
<Preview
title="Default"
preview={<Default />}
code={examples ? examples.Default : 'Loading'}
/>
<Preview
title="Colours"
preview={<Colours />}
code={examples ? examples.Colours : 'Loading'}
/>
<Preview
title="Sizes"
preview={<Sizes />}
code={examples ? examples.Sizes : 'Loading'}
/>
<PropsTable
title="Props"
data={[
{
name: 'color',
type: 'ColorProps',
required: false,
default: 'bulma',
description: 'Colour of Loader',
},
{
name: 'size',
type: 'twoxsmall | xsmall | small | medium | large',
required: false,
default: 'medium',
description: 'Size of Loader',
},
]}
/>
</>
);
};
export default PageLoader;