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.
minRowsnumberoptionalMinimum number of rows to show.
maxRowsnumberoptionalMaximum number of rows to show.
placeholderstringoptionalThe placeholder text to be displayed in the `<textarea>`. Refer to official HTML documentation for more info. https://developer.mozilla.org/en-US/docs...
requiredbooleanoptionalWhether the `<textarea>` is required to have a `value` before submitting inside a `<form>`. Note that our `<Form>` component removes default form vali...
enterkeyhintstringoptionalThe text for the main keyboard action on mobile devices when this `<textarea>` is focused....
UNSAFE_styleCSSPropertiesoptional
refRef<HTMLTextAreaElement>optionalAllows getting a ref to the component instance....
keyKeyoptional

Usage

Not used in any projects yet.