docs(textarea): improve props documentation (#241)

This commit is contained in:
Sylvain Marroufin
2023-05-31 12:49:47 +02:00
committed by GitHub
parent 23f01fde41
commit 9827de0b58

View File

@@ -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
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
:component-props