ITextareaFieldProps

interface
Forms & Inputs

Full prop surface for <OrigamTextareaField> — extends field, input, color, density, adjacent-inner, padding/margin, border, rounded and elevation contracts. Adds auto-grow, rows, counter, prefix/suffix, rich mode and toolbar configuration.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

autoGrow
boolean
Automatically grows the textarea height to fit its content.
autofocus
boolean
Focuses the textarea on mount.
counter
boolean | number | string
Shows a character counter. Pass a number to set the max.
counterValue
number | ((e: any) => number)
Custom function or fixed number for the counter value.
persistentClear
boolean
Keeps the clear button visible even when the field is not focused.
prefix
string
Text rendered before the textarea value (inside the control).
placeholder
string
Placeholder text shown when the field has no value.
persistentPlaceholder
boolean
Keeps the placeholder visible even when a value is set.
persistentCounter
boolean
Keeps the counter visible even when the field is not focused.
noResize
boolean
Disables manual resize handle on the textarea.
rows
number | string
Initial number of visible text rows.
maxRows
number | string
Maximum number of rows when auto-grow is enabled.
suffix
string
Text rendered after the textarea value (inside the control).
modelModifiers
string | boolean
Vue model modifiers applied to the v-model binding.
mode
TTextareaMode
Render mode. 'plain' (default) uses a native <textarea>. 'rich' uses a contenteditable surface with toolbar.
output
TTextareaOutput
When mode='rich', format of the emitted value. 'html' (default) or 'markdown'.
toolbar
ReadonlyArray<TTextareaToolbarCommand> | false
Ordered list of toolbar commands to show in rich mode. Pass false to hide the toolbar.
toolbarPosition
TTextareaToolbarPosition
Position of the toolbar relative to the editing surface in rich mode.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Rich textarea with toolbar

html