diff --git a/src/components/Select.tsx b/src/components/Select.tsx index d535fbd..1054431 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -15,28 +15,41 @@ type Props = { readOnly?: boolean, } & SelectHTMLAttributes -const Select: FC = (props: Props) => { +const Select: FC = ({ + className, + items, + error_text, + placeholder, + label, + readOnly, + ...selectProps +}) => { + const isControlled = selectProps.value !== undefined + return (
{ - props.label && + label && }
- { return { label: item.title, value: item.id + '' } }) || []} - {...props} + {...selectProps} /> ) }