UNPKG

@synergycodes/axiom

Version:

A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.

30 lines (29 loc) 890 B
import { UseSelectParameters } from '@mui/base'; import { SelectItem } from './types'; import { ItemSize } from '../../shared/types/item-size'; export type SelectBaseProps = UseSelectParameters<string | number | null> & { /** * Custom class name for the component. */ className?: string; /** * Size of the select input */ size?: ItemSize; /** * Placeholder text for the select input */ placeholder?: string; /** * List of items to display in the select dropdown */ items: SelectItem[]; /** * Whether the select has an error */ error?: boolean; }; /** * Component for displaying a select dropdown with customizable size, placeholder, and item list */ export declare function Select({ className, size, items, placeholder, error, ...props }: SelectBaseProps): import("react/jsx-runtime").JSX.Element;