SelectProps
Unpublished development API. This package is under development and is not available as a published release.
Controls the selected value, list visibility, accessible list name and placeholder for an absent value.
import type { SelectProps } from '@threadplane/react/chat';Declaration
export interface SelectProps {
readonly className?: string;
readonly disabled?: boolean;
readonly label: string;
readonly menuClassName?: string;
readonly onOpenChange: (open: boolean) => void;
readonly onValueChange: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
readonly open: boolean;
readonly options: readonly SelectOption[];
readonly placeholder?: string;
readonly value: string;
}Members
className
readonly className?: string;disabled
readonly disabled?: boolean;label
readonly label: string;onOpenChange
readonly onOpenChange: (open: boolean) => void;onValueChange
readonly onValueChange: (value: string, event: MouseEvent<HTMLButtonElement>) => void;open
readonly open: boolean;options
readonly options: readonly SelectOption[];placeholder
readonly placeholder?: string;value
readonly value: string;