import clsx from 'clsx'; import React, { CSSProperties } from 'react'; import { omit } from '../utils/mixins'; interface Style extends CSSProperties { select?: CSSProperties; option?: CSSProperties; label?: CSSProperties; } export type Option = { label: string; value: string }; export interface SelectProps extends React.SelectHTMLAttributes { label?: string; options: Option[]; style?: Style; } export function Select({ className, disabled, label, name, options = [], style, value, ...restProps }: SelectProps) { return (
{label && ( )}
); } export default Select;