Skip to content

Commit

Permalink
[EuiFlyoutResizable] Fix onResize not appearing in props table (#7750)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored May 14, 2024
1 parent 051c88c commit dd0ad53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eui/src/components/flyout/flyout_resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import { getPosition } from '../resizable_container/helpers';
import { EuiFlyout, EuiFlyoutProps } from './flyout';
import { euiFlyoutResizableButtonStyles } from './flyout_resizable.styles';

export type EuiFlyoutResizableProps = Omit<EuiFlyoutProps, 'maxWidth'> & {
export type EuiFlyoutResizableProps = {
maxWidth?: number;
minWidth?: number;
/**
* Optional callback that fires on user resize with the new flyout width
*/
onResize?: (width: number) => void;
};
} & Omit<EuiFlyoutProps, 'maxWidth' | 'onResize'>; // If not omitted, the correct props don't show up in the docs prop table

export const EuiFlyoutResizable = forwardRef(
(
Expand Down

0 comments on commit dd0ad53

Please sign in to comment.