nextuiq
Version:
NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat
21 lines (20 loc) • 686 B
TypeScript
import { default as React, HTMLAttributes } from 'react';
export interface Option {
value: string;
text: string;
selected: boolean;
}
export interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'id' | 'aria-label' | 'aria-describedby'> {
label: string;
options: Option[];
defaultSelected?: string[];
onChange?: (selected: string[]) => void;
disabled?: boolean;
required?: boolean;
error?: boolean;
name?: string;
id?: string;
"aria-label"?: string;
"aria-describedby"?: string;
}
export declare const MultiSelect: React.NamedExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;