On this pageFunctions
Ui/Textarea
/** Renders an accessible textarea by building ARIA attribute groups and delegating layout to the consumer's `toView` callback. */
<ParentMessage>(config: ViewConfig<ParentMessage>): Html/** Attribute groups the textarea component provides to the consumer's `toView` callback. */
type TextareaAttributes = Readonly<{
description: ReadonlyArray<Attribute<ParentMessage>>
label: ReadonlyArray<Attribute<ParentMessage>>
textarea: ReadonlyArray<Attribute<ParentMessage>>
}>/** Configuration for rendering a textarea with `view`. */
type ViewConfig = Readonly<{
id: string
isAutofocus: boolean
isDisabled: boolean
isInvalid: boolean
name: string
onInput: (value: string) => ParentMessage
placeholder: string
rows: number
toView: (attributes: TextareaAttributes<ParentMessage>) => Html
value: string
}>