IInputSlots
interface
Form & Input
Slot signatures for <OrigamInput>. The default slot exposes the input control identity and state so downstream components can wire up their native element with the right ARIA and event handlers.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
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(data: { id: string messagesId: string isDisabled: boolean isDirty: boolean isValid: boolean | undefined isReadonly: boolean }) => any
- Default slot exposing the input identity and current state flags for wiring ARIA attributes and event handlers on the native element.
- messages(data: { hasMessages: boolean, messages: Array<string> | Record<string, string> }) => any
- Slot for the full messages block, exposing whether messages are present and the messages collection.
- message(message: any) => any
- Slot for rendering a single message item within the messages list.
- details(props: any) => any
- Slot for the details area below the input (hint, counter, error messages).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Accessing input state from the default slot