UNPKG

@penaprieto/design-system

Version:

Multi-brand React design system with design tokens from Figma

27 lines 727 B
import React from 'react'; import './Combobox.css'; export interface ComboboxOption { value: string; label: string; disabled?: boolean; } export interface ComboboxProps { /** Opciones */ options: ComboboxOption[]; /** Valor seleccionado (controlado) */ value?: string; /** Valor por defecto (no controlado) */ defaultValue?: string; /** Callback al cambiar */ onChange?: (value: string) => void; /** Placeholder */ placeholder?: string; /** Deshabilitado */ disabled?: boolean; /** Error */ error?: boolean; /** Clase CSS adicional */ className?: string; } export declare const Combobox: React.FC<ComboboxProps>; //# sourceMappingURL=Combobox.d.ts.map