import classNames from 'classnames'; interface Props { name: string; label: string; labelPosition?: 'top' | 'left'; labelClassName?: string; hideLabel?: boolean; value: string; options: Record; onChange: (value: T) => void; size?: 'xs' | 'sm' | 'md' | 'lg'; } export function Select({ labelPosition = 'top', name, labelClassName, hideLabel, label, value, options, onChange, size = 'md', }: Props) { const id = `input-${name}`; return (
); } const selectBackgroundStyles = { backgroundImage: `url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`, backgroundPosition: 'right 0.5rem center', backgroundRepeat: 'no-repeat', backgroundSize: '1.5em 1.5em', };