Back to Component Browser
Textarea
Quartzlib/quartz/components/Textarea/index.ts
Preview
Import
import { Textarea } from '@/lib/quartz';Props (9)
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| fit | enum | optional | container | If `container`, the textarea will expand to the size of its containing element. |
| minRows | number | optional | — | Minimum number of rows to show. |
| maxRows | number | optional | — | Maximum number of rows to show. |
| placeholder | string | optional | — | The placeholder text to be displayed in the `<textarea>`. Refer to official HTML documentation for more info. https://developer.mozilla.org/en-US/docs... |
| required | boolean | optional | — | Whether the `<textarea>` is required to have a `value` before submitting inside a `<form>`. Note that our `<Form>` component removes default form vali... |
| enterkeyhint | string | optional | — | The text for the main keyboard action on mobile devices when this `<textarea>` is focused.... |
| UNSAFE_style | CSSProperties | optional | — | — |
| ref | Ref<HTMLTextAreaElement> | optional | — | Allows getting a ref to the component instance.... |
| key | Key | optional | — | — |
Usage
Not used in any projects yet.