diff --git a/apps/client/src/widgets/react/Dropdown.tsx b/apps/client/src/widgets/react/Dropdown.tsx index 3445bd832..fbcd6a78e 100644 --- a/apps/client/src/widgets/react/Dropdown.tsx +++ b/apps/client/src/widgets/react/Dropdown.tsx @@ -13,12 +13,14 @@ export interface DropdownProps { dropdownContainerStyle?: CSSProperties; dropdownContainerClassName?: string; hideToggleArrow?: boolean; + /** If set to true, then the dropdown button will be considered an icon action (without normal border and sized for icons only). */ + iconAction?: boolean; noSelectButtonStyle?: boolean; disabled?: boolean; text?: ComponentChildren; } -export default function Dropdown({ className, buttonClassName, isStatic, children, title, text, dropdownContainerStyle, dropdownContainerClassName, hideToggleArrow, disabled, noSelectButtonStyle }: DropdownProps) { +export default function Dropdown({ className, buttonClassName, isStatic, children, title, text, dropdownContainerStyle, dropdownContainerClassName, hideToggleArrow, iconAction, disabled, noSelectButtonStyle }: DropdownProps) { const dropdownRef = useRef(null); const triggerRef = useRef(null); @@ -58,7 +60,7 @@ export default function Dropdown({ className, buttonClassName, isStatic, childre return (