UNPKG

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

22 lines (21 loc) 818 B
import { default as React, SelectHTMLAttributes } from 'react'; export interface Option { value: string; label: string; disabled?: boolean; } export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange' | 'value'> { options: Option[]; placeholder?: string; onChange: (value: string) => void; className?: string; defaultValue?: string; error?: boolean; name?: string; "aria-label"?: string; "aria-describedby"?: string; } export declare const Select: React.MemoExoticComponent<{ ({ options, placeholder, onChange, className, defaultValue, disabled, error, required, name, id, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element; displayName: string; }>;