Skip to content

Commit 949d0d5

Browse files
committed
improvement: adding propstable for Textarea
1 parent cf074bb commit 949d0d5

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

src/components/Datepicker/docs/Datepicker.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { DatepickerSingleInput as DatePicker } from '../DatepickerSingleInput';
1010
import { ControlledDatepickerSingleInput } from './ControlledDatepickerSingleInput';
1111
import { ControlledDatepickerRangeInput } from './ControlledDatepickerRangeInput';
1212
import { DatepickerOnModal } from './DatepickerOnModal';
13-
import { DatePickerSingleInputPropsTable } from './DatePickerSingleInputPropsTable'
14-
import { DatePickerRangeInputPropsTable } from './DatePickerRangeInputPropsTable'
13+
import { DatepickerSingleInputPropsTable } from './DatepickerSingleInputPropsTable'
14+
import { DatepickerRangeInputPropsTable } from './DatepickerRangeInputPropsTable'
1515

1616
# Datepicker
1717

@@ -21,15 +21,15 @@ import { DatePickerRangeInputPropsTable } from './DatePickerRangeInputPropsTable
2121

2222
### Single datepicker props
2323

24-
<DatePickerSingleInputPropsTable />
24+
<DatepickerSingleInputPropsTable />
2525

2626
## Range
2727

2828
<ControlledDatepickerRangeInput label="Date Range" />
2929

3030
### Range datepicker props
3131

32-
<DatePickerRangeInputPropsTable />
32+
<DatepickerRangeInputPropsTable />
3333

3434
## Datepicker on Modal
3535

src/components/Datepicker/docs/DatePickerRangeInputPropsTable.tsx renamed to src/components/Datepicker/docs/DatepickerRangeInputPropsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { FC } from 'react';
22

33
import { PropsTable } from '../../../docs/PropsTable';
44

5-
export const DatePickerRangeInputPropsTable: FC = () => {
5+
export const DatepickerRangeInputPropsTable: FC = () => {
66
const props = [
77
{
88
name: 'startPlaceholder',

src/components/Datepicker/docs/DatePickerSingleInputPropsTable.tsx renamed to src/components/Datepicker/docs/DatepickerSingleInputPropsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { FC } from 'react';
22

33
import { PropsTable } from '../../../docs/PropsTable';
44

5-
export const DatePickerSingleInputPropsTable: FC = () => {
5+
export const DatepickerSingleInputPropsTable: FC = () => {
66
const props = [
77
{
88
name: 'placeholder',

src/components/Textarea/docs/Textarea.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ import { ControlledTextarea } from './ControlledTextarea';
99
import { Textarea } from '../Textarea';
1010
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
1111
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
12+
import { TextareaPropsTable } from './TextareaPropsTable'
13+
1214

1315
# Textarea
1416

1517
<StyledSystemLinks component="Textarea" supportedProps={ ['margin', 'height', 'width'] }/>
1618

19+
## Properties
20+
21+
<TextareaPropsTable />
22+
1723
## Playground
1824

1925
<Playground>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React, { FC } from 'react';
2+
3+
import { PropsTable } from '../../../docs/PropsTable';
4+
5+
export const TextareaPropsTable: FC = () => {
6+
const props = [
7+
{
8+
name: 'variant',
9+
type: "'boxed' | 'bottom-lined'",
10+
description: 'The variant of the component.'
11+
},
12+
{
13+
name: 'size',
14+
type: "'small' | 'medium'",
15+
description: 'The size of the component.'
16+
},
17+
{
18+
name: 'inverted',
19+
type: 'boolean',
20+
description: 'Determines whether the component follows the inverted color scheme.'
21+
},
22+
{
23+
name: 'label',
24+
type: 'string',
25+
description: 'Label for the input.'
26+
},
27+
{
28+
name: 'placeholder',
29+
type: 'string',
30+
description: 'Placeholder for the component.'
31+
},
32+
{
33+
name: 'error',
34+
type: 'boolean',
35+
description: 'Determines the error state of the component.'
36+
}
37+
];
38+
return <PropsTable props={props} />;
39+
};

0 commit comments

Comments
 (0)