|
1 | 1 | --- |
2 | 2 | --- |
3 | 3 |
|
4 | | -import PropsTable from '../../src/components/props-table' |
5 | 4 | import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live' |
| 5 | +import AutoPropsTable from '../../src/components/auto-props-table' |
6 | 6 | import { LineWave } from 'react-loader-spinner' |
7 | 7 |
|
8 | 8 | # LineWave |
@@ -35,75 +35,7 @@ import { LineWave } from 'react-loader-spinner' |
35 | 35 |
|
36 | 36 | ## Props |
37 | 37 |
|
38 | | -<PropsTable |
39 | | - properties={[ |
40 | | - { |
41 | | - name: 'height', |
42 | | - type: 'number | string', |
43 | | - default: '100', |
44 | | - description: 'Height of the line wave.', |
45 | | - }, |
46 | | - { |
47 | | - name: 'width', |
48 | | - type: 'number | string', |
49 | | - default: '100', |
50 | | - description: 'Width of the line wave.', |
51 | | - }, |
52 | | - { |
53 | | - name: 'color', |
54 | | - type: 'string', |
55 | | - default: '#4fa94d', |
56 | | - description: 'Color of the line wave.', |
57 | | - }, |
58 | | - { |
59 | | - name: 'ariaLabel', |
60 | | - type: 'string', |
61 | | - default: 'line-wave', |
62 | | - description: 'ARIA label for the line wave.', |
63 | | - }, |
64 | | - { |
65 | | - name: 'wrapperStyle', |
66 | | - type: 'object', |
67 | | - default: '{}', |
68 | | - description: |
69 | | - 'Styles to be applied to the wrapper. It should be a valid CSS object. It can be used for custom styling. It will override the default style.', |
70 | | - }, |
71 | | - { |
72 | | - name: 'wrapperClass', |
73 | | - type: 'string', |
74 | | - default: 'undefined', |
75 | | - description: |
76 | | - 'Class name for the wrapper element. It can be used for custom styling.', |
77 | | - }, |
78 | | - { |
79 | | - name: 'visible', |
80 | | - type: 'boolean', |
81 | | - default: 'true', |
82 | | - description: 'Whether the line wave is visible.', |
83 | | - }, |
84 | | - { |
85 | | - name: 'firstLineColor', |
86 | | - type: 'string', |
87 | | - default: 'undefined', |
88 | | - description: |
89 | | - 'Color of the first line. If not provided, the color will be the same as the color.', |
90 | | - }, |
91 | | - { |
92 | | - name: 'middleLineColor', |
93 | | - type: 'string', |
94 | | - default: 'undefined', |
95 | | - description: |
96 | | - 'Color of the middle line. If not provided, the color will be the same as the color.', |
97 | | - }, |
98 | | - { |
99 | | - name: 'lastLineColor', |
100 | | - type: 'string', |
101 | | - default: 'undefined', |
102 | | - description: |
103 | | - 'Color of the last line. If not provided, the color will be the same as the color.', |
104 | | - }, |
105 | | - ]} |
106 | | -/>{' '} |
| 38 | +<AutoPropsTable component="LineWave" exclude={["gradientType", "gradientAngle", "colors"]} /> |
107 | 39 |
|
108 | 40 | ## More Examples: |
109 | 41 |
|
|
0 commit comments