diff --git a/src/components/ui/Select.module.scss b/src/components/ui/Select.module.scss index 7a3bd32..844537c 100644 --- a/src/components/ui/Select.module.scss +++ b/src/components/ui/Select.module.scss @@ -45,6 +45,13 @@ } } +.triggerSm { + height: 28px; + padding: 0 10px; + font-size: 12px; + box-shadow: none; +} + .triggerText { overflow: hidden; text-overflow: ellipsis; diff --git a/src/components/ui/Select.tsx b/src/components/ui/Select.tsx index 9c36515..b1c49b0 100644 --- a/src/components/ui/Select.tsx +++ b/src/components/ui/Select.tsx @@ -28,6 +28,7 @@ interface SelectProps { ariaLabelledBy?: string; ariaDescribedBy?: string; fullWidth?: boolean; + size?: 'sm' | 'md'; id?: string; } @@ -87,6 +88,7 @@ export function Select({ ariaLabelledBy, ariaDescribedBy, fullWidth = true, + size = 'md', id, }: SelectProps) { const generatedId = useId(); @@ -301,7 +303,7 @@ export function Select({