werkbank
    Preparing search index...

    Type Alias ChipsInputProps<Schema, InputSchema>

    ChipsInputProps: Omit<
        HTMLAttributes<HTMLDivElement>,
        "defaultValue" | "onChange" | "children",
    > & ValidationProps<Schema> & {
        defaultValue?: string;
        input?: InputProps<InputSchema>;
        name?: string;
        onBlur?: FocusEventHandler<HTMLInputElement>;
        onChange?: ChangeEventHandler<HTMLInputElement>;
        render?: RenderFn;
        required?: boolean;
        separator?: string;
        value?: string;
    }

    Props for the ChipsInput component.

    Type Parameters

    • Schema extends BaseSchema<any, any, any>
    • InputSchema extends BaseSchema<any, any, any>

    Type Declaration

    • OptionaldefaultValue?: string

      Initial value as a separated string.

    • Optionalinput?: InputProps<InputSchema>

      Props passed to the internal text input.

    • Optionalname?: string

      Name attribute for the hidden input.

    • OptionalonBlur?: FocusEventHandler<HTMLInputElement>

      Callback when the input is blurred.

    • OptionalonChange?: ChangeEventHandler<HTMLInputElement>

      Callback when the hidden input value changes.

    • Optionalrender?: RenderFn

      Custom render function for chips.

    • Optionalrequired?: boolean

      Whether the field is required.

    • Optionalseparator?: string

      The character used to separate values in the hidden input and when pasting.

      ","
      
    • Optionalvalue?: string

      Controlled value as a separated string.

    Extends standard HTML div attributes (as the wrapper) and adds validation and chip-specific properties.