Skip to content

Commit 4bcc4d6

Browse files
committed
style(brutalist): custom dropdown
1 parent 75a1baf commit 4bcc4d6

File tree

3 files changed

+183
-162
lines changed

3 files changed

+183
-162
lines changed

src/components/CustomDropdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const CustomDropdown = ({
1111
label,
1212
className = '',
1313
variant = 'default',
14+
fullWidth = false,
1415
}) => {
1516
const [isOpen, setIsOpen] = useState(false);
1617
const dropdownRef = useRef(null); // Ref for the button
@@ -116,7 +117,7 @@ const CustomDropdown = ({
116117
};
117118

118119
return (
119-
<div className={`relative inline-block text-left ${className}`}>
120+
<div className={`relative ${fullWidth ? 'w-full block' : 'inline-block'} text-left ${className}`}>
120121
<button
121122
type="button"
122123
ref={dropdownRef} // Attach ref to the button

0 commit comments

Comments
 (0)