mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 13:47:55 +01:00
docs(textarea): improve props documentation (#241)
This commit is contained in:
committed by
GitHub
parent
23f01fde41
commit
9827de0b58
@@ -85,6 +85,20 @@ props:
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
### Rows
|
||||||
|
|
||||||
|
Use the `rows` prop to set the number of rows of the Textarea.
|
||||||
|
|
||||||
|
::component-card
|
||||||
|
---
|
||||||
|
baseProps:
|
||||||
|
name: 'input'
|
||||||
|
placeholder: 'Search...'
|
||||||
|
props:
|
||||||
|
rows: 1
|
||||||
|
---
|
||||||
|
::
|
||||||
|
|
||||||
### Disabled
|
### Disabled
|
||||||
|
|
||||||
Use the `disabled` prop to disable the Textarea.
|
Use the `disabled` prop to disable the Textarea.
|
||||||
@@ -99,6 +113,35 @@ props:
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
### Autoresize
|
||||||
|
|
||||||
|
Use the `autoresize` prop to enable the autoresize. Writing more lines than the `rows` prop will make the Textarea grow up.
|
||||||
|
|
||||||
|
::component-card
|
||||||
|
---
|
||||||
|
baseProps:
|
||||||
|
name: 'input'
|
||||||
|
placeholder: 'Search...'
|
||||||
|
modelValue: 'Here is an autoresize Textarea, write new lines to make the Textarea grow up...'
|
||||||
|
props:
|
||||||
|
autoresize: true
|
||||||
|
---
|
||||||
|
::
|
||||||
|
|
||||||
|
### Resize
|
||||||
|
|
||||||
|
Use the `resize` prop to enable the resize control.
|
||||||
|
|
||||||
|
::component-card
|
||||||
|
---
|
||||||
|
baseProps:
|
||||||
|
name: 'input'
|
||||||
|
placeholder: 'Search...'
|
||||||
|
props:
|
||||||
|
resize: true
|
||||||
|
---
|
||||||
|
::
|
||||||
|
|
||||||
## Props
|
## Props
|
||||||
|
|
||||||
:component-props
|
:component-props
|
||||||
|
|||||||
Reference in New Issue
Block a user