Skip to content

Commit

Permalink
feat: add dropdwonWidth prop to select
Browse files Browse the repository at this point in the history
  • Loading branch information
lialila committed Jan 17, 2025
1 parent 2502587 commit c637a85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface BoemlySelectProps extends Omit<SelectProps, 'onChange' | 'value
selectAllText?: string;
value?: string[];
size?: 'xs' | 'sm' | 'md' | 'lg';
dropdownWidth?: string;
variant?: 'filled' | 'unstyled' | 'flushed' | 'outline';
onChange?: (value: string[]) => void;
onClose?: () => void;
Expand All @@ -64,6 +65,7 @@ export const BoemlySelect: React.FC<BoemlySelectProps> = ({
preventDeselection = false,
selectAllText = 'Select All',
size = 'md',
dropdownWidth,
variant = 'outline',
borderColor = CustomizedSelect.variants[variant].borderColor,
backgroundColor = CustomizedSelect.variants[variant].backgroundColor,
Expand Down Expand Up @@ -259,6 +261,7 @@ export const BoemlySelect: React.FC<BoemlySelectProps> = ({
maxHeight={dynamicMaxHeight}
overflowY="auto"
zIndex="popover"
width={dropdownWidth}
>
{isSearchable && (
<InputGroup mb="4">
Expand Down

0 comments on commit c637a85

Please sign in to comment.