ITextareaFieldSlots

interface
Component Slots

Slot signatures for <OrigamTextareaField>. Extends field and input slots with a counter slot, a field override slot, and rich-mode toolbar replacement slots.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

counter
(data: { counter: string, max?: string | number, value: string | number }) => any
Replace the counter chip rendered below the textarea.
field
(data: { id: string, isDisabled: boolean, isDirty: boolean, isValid: boolean | undefined, isReadonly: boolean }) => any
Override the inner field wrapper with full control state access.
toolbar
(data: ITextareaToolbarSlotProps) => any
Replace the rich-text toolbar entirely (rich mode only).
'toolbar-item'
(data: { command: TTextareaToolbarCommand label: string icon: string isActive: boolean onClick: () => void }) => any
Replace a single toolbar button while keeping the rest of the toolbar (rich mode only).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom counter slot on a rich textarea

vue