@resistdesign/voltra
    Preparing search index...

    Interface PrimitiveInputProps<T>

    Props for primitive input components.

    interface PrimitiveInputProps<T = unknown> {
        disabled?: boolean;
        hasError?: boolean;
        id?: string;
        onChange: (value: T) => void;
        placeholder?: string;
        value: T;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    disabled?: boolean

    Disables the input when true.

    hasError?: boolean

    Flags the input as invalid for styling.

    id?: string

    Optional DOM id applied to the input.

    onChange: (value: T) => void

    Callback invoked when the value changes.

    placeholder?: string

    Placeholder text shown when the input is empty.

    value: T

    Current value for the input.