ITextFieldSlots

interface
Slots

Slot signatures for <OrigamTextField> — extends field and input slots with a counter slot for custom counter markup and a field slot to fully replace the field surface.

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
Custom slot for the character counter. Receives current counter text, max and numeric value.
field
(data: { id: string, isDisabled: boolean, isDirty: boolean, isValid: boolean | undefined, isReadonly: boolean }) => any
Override slot that replaces the entire field surface. Receives the field state context.

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

html