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