Back to Component Browser

Textarea

Quartz

lib/quartz/components/Textarea/index.ts

Preview

Import

import { Textarea } from '@/lib/quartz';

Props (9)

NameTypeRequiredDefaultDescription
fitenumoptionalcontainerIf `container`, the textarea will expand to the size of its containing element.
minRowsnumberoptional—Minimum number of rows to show.
maxRowsnumberoptional—Maximum number of rows to show.
placeholderstringoptional—The placeholder text to be displayed in the `<textarea>`. Refer to official HTML documentation for more info. https://developer.mozilla.org/en-US/docs...
requiredbooleanoptional—Whether the `<textarea>` is required to have a `value` before submitting inside a `<form>`. Note that our `<Form>` component removes default form vali...
enterkeyhintstringoptional—The text for the main keyboard action on mobile devices when this `<textarea>` is focused....
UNSAFE_styleCSSPropertiesoptional——
refRef<HTMLTextAreaElement>optional—Allows getting a ref to the component instance....
keyKeyoptional——

Usage

Not used in any projects yet.