From 9827de0b5823fd08a7cfba487cc95763d195f003 Mon Sep 17 00:00:00 2001 From: Sylvain Marroufin Date: Wed, 31 May 2023 12:49:47 +0200 Subject: [PATCH] docs(textarea): improve props documentation (#241) --- docs/content/3.forms/2.textarea.md | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/docs/content/3.forms/2.textarea.md b/docs/content/3.forms/2.textarea.md index a6461e5b..df8a68cf 100644 --- a/docs/content/3.forms/2.textarea.md +++ b/docs/content/3.forms/2.textarea.md @@ -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