import clsx from "clsx"; import { forwardRef } from "react"; import type { Size } from "@camome/system"; import { FormField, FormFieldProps } from "../FormField"; import { UnstyledInput } from "../UnstyledInput"; import styles from "./styles.module.scss"; type NativeProps = Omit; export type SelectProps = { size?: Size; fill?: boolean } & NativeProps & Pick, "description" | "error" | "label">; export const Select = forwardRef( ( { label, description, error, size = "md", fill, id, className, ...props }, forwardedRef ) => { const select = ( ); if (!label) return select; return ( {select} ); } ); Select.displayName = "Select";