Skip to content

Commit 0f769b5

Browse files
committed
docs: improve left and right props description
1 parent 0af3972 commit 0f769b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/TextInput/TextInput.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
3737
* This component render TextInputOutlined or TextInputFlat based on that props
3838
*/
3939
mode?: 'flat' | 'outlined';
40+
/**
41+
* The adornment placed on the left side of the input. It can be either `TextInput.Icon` or `TextInput.Affix`.
42+
*/
4043
left?: React.ReactNode;
44+
/**
45+
* The adornment placed on the right side of the input. It can be either `TextInput.Icon` or `TextInput.Affix`.
46+
*/
4147
right?: React.ReactNode;
4248
/**
4349
* If true, user won't be able to interact with the component.

0 commit comments

Comments
 (0)