(props: Props)
| 9 | onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void |
| 10 | } |
| 11 | export default function Select(props: Props) { |
| 12 | const { children, defaultValue, className, value, onChange, ...rest } = props |
| 13 | |
| 14 | const classes = classNames( |
| 15 | `form-select text-xs focus:ring-transparent form-select text-gray-800 h-6 bg-gray-100 rounded pr-4.5 bg-right pl-2 py-0 appearance-none focus:outline-none border-none`, |
| 16 | className |
| 17 | ) |
| 18 | return ( |
| 19 | <select |
| 20 | {...rest} |
| 21 | defaultValue={defaultValue} |
| 22 | className={classes} |
| 23 | value={value} |
| 24 | onChange={onChange} |
| 25 | > |
| 26 | {children} |
| 27 | </select> |
| 28 | ) |
| 29 | } |
nothing calls this directly
no test coverage detected