Skip to content

Commit

Permalink
Leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
r100-stack committed Sep 20, 2024
1 parent 0bad11a commit 2a0918b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-kids-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@itwin/itwinui-react': minor
---

Added a new `menuProps` prop to `SplitButton` for additional control over the menu (e.g. disable the [`hide` middleware](https://floating-ui.com/docs/hide)).
4 changes: 2 additions & 2 deletions packages/itwinui-react/src/core/Buttons/SplitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export type SplitButtonProps = ButtonProps & {
'label' | 'size'
>;
/**
* Props to customize Popover/menu behavior.
* Props to customize menu behavior.
*/
popoverProps?: Pick<Parameters<typeof usePopover>[0], 'middleware'>;
menuProps?: Pick<Parameters<typeof usePopover>[0], 'middleware'>;
} & Pick<PortalProps, 'portal'>;

/**
Expand Down

0 comments on commit 2a0918b

Please sign in to comment.