UNPKG

liber-salti

Version:

Saltí - Liber Design System

45 lines (44 loc) 1.08 kB
export declare type SelectValueProps = (string | number)[]; export interface SelectProps { /** * If `true`, the input will be disabled. */ disabled?: boolean; /** * If `true`, the input is going to be red. */ error?: boolean; /** * If `true`, multiple values can be selected at the same time, only allowed when using `chip`. */ multiple?: boolean; /** * If `true`, the selected value will be shown as a chip. */ chip?: boolean; /** * If `true`, the `input` will show the required asterisk `*`. */ required?: boolean; /** * The label of the input. */ label?: string; /** * The current value of the input. */ value?: SelectValueProps; /** * The size of the select. */ size?: 'small' | 'medium'; /** * The text that shows under the input. */ helperText?: string; /** * Callback fired when the value is changed. * */ onChange?: (event: any) => void; }