UNPKG

@neynar/ui

Version:

React UI component library built on shadcn/ui and Tailwind CSS

53 lines (42 loc) 1.11 kB
# ComboboxOption **Type**: type Option structure for combobox items Defines the shape of each option that can be displayed and selected in the combobox dropdown list. ## Type Definition ```typescript import { ComboboxOption } from '@neynar/ui'; type ComboboxOption = { /** * Unique identifier for this option * * Used for selection tracking and should be unique within the options array. */ value: string; /** * Display text shown to users in the dropdown * * Should be descriptive and help users understand what this option represents. */ label: string; /** * Whether this option is disabled and cannot be selected * * Disabled options remain visible but are not selectable and appear dimmed. * * @default false */ disabled?: boolean; } ``` ## Type Properties ### value - **Type**: `string` - **Required**: Yes - **Description**: No description available ### label - **Type**: `string` - **Required**: Yes - **Description**: No description available ### disabled - **Type**: `boolean` - **Required**: No - **Description**: No description available