s-private API Documentation - v3.8.1
    Preparing search index...

    Type Alias Props

    Props for the FormDropdownInput component.

    This component provides a searchable dropdown with support for custom values. It integrates with the generic form wrapper for form state management.

    FormDropdownInput for the component

    type Props = {
        customValueLabel?: (value: string) => string;
        disabled?: boolean;
        emptyMessage?: string;
        htmlFor: string;
        inputRef?: RefObject<HTMLInputElement | null>;
        label: string;
        name?: string;
        options: { id: string; name: string }[];
        placeholder: string;
        required?: boolean;
        searchPlaceholder?: string;
    }
    Index

    Properties

    customValueLabel?: (value: string) => string

    Function to generate the label for custom values

    disabled?: boolean

    Whether the field is disabled

    emptyMessage?: string

    Message shown when no options match the search

    htmlFor: string

    The HTML id for the input element

    inputRef?: RefObject<HTMLInputElement | null>

    Optional ref to access the hidden input element

    label: string

    The label text displayed above the dropdown

    name?: string

    The form field name (defaults to htmlFor if not provided)

    options: { id: string; name: string }[]

    Array of options with id and display name

    placeholder: string

    Placeholder text when no value is selected

    required?: boolean

    Whether the field is required

    searchPlaceholder?: string

    Placeholder text for the search input