IFieldSlots

interface
Slots

Slot signatures for OrigamField — default slot for the inner input element, plus label, floating label, prefix, suffix and loader 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.

default
(props: { class?: string | Array<string> } & IFieldDefaultSlotProps) => any
Default slot for the inner native input; receives IFieldDefaultSlotProps plus an optional class override.
loader
() => any
Custom loader content shown when the field is in a loading state.
label
(props: ILabelProps) => any
Custom static label content.
floatingLabel
(props: ILabelProps) => any
Custom floating label content.
prefix
() => any
Custom prefix content rendered inside the field before the input.
suffix
() => any
Custom suffix content rendered inside the field after the input.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom label and prefix slots

vue