jbilcke-hf's picture
jbilcke-hf HF staff
polishing the design πŸ’…
c78f7b4
raw
history blame contribute delete
737 Bytes
import { ComponentProps } from "react";
import { Select } from "@/components/ui/select";
import { Label } from "@/components/ui/label";
import { cn } from "@/lib/utils/cn";
export function SelectField({
label,
className = "",
labelClassName = "",
selectClassName = "",
...props
}: ComponentProps<typeof Select> & {
label?: string;
className?: string;
labelClassName?: string;
selectClassName?: string;
}) {
return (
<div className={cn(
`flex flex-col space-y-3 items-start`,
className
)}>
{label && <Label className={cn(`
text-base md:text-lg lg:text-xl
text-stone-900/90 dark:text-stone-100/90`, labelClassName)}>{label}</Label>}
<Select {...props} />
</div>
)
}