@muraldevkit/ui-toolkit 2.29.4 → 2.29.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomMenuPosition } from '..';
|
|
3
|
+
import { MenuPosition, MenuAlignment } from '../constants';
|
|
4
|
+
interface MenuWithTriggerProps {
|
|
5
|
+
position?: MenuPosition;
|
|
6
|
+
spacing?: 'default' | 'compact';
|
|
7
|
+
alignment?: MenuAlignment;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
customPosition?: CustomMenuPosition;
|
|
10
|
+
triggerAlignment?: 'left' | 'right' | 'center';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Demo of a menu that is manually opened by setting the action state.
|
|
14
|
+
*
|
|
15
|
+
* @param {MenuWithTriggerProps} props - The props for the menu with trigger
|
|
16
|
+
* @returns {Element} The menu with trigger demo
|
|
17
|
+
*/
|
|
18
|
+
export declare const MenuWithActionState: ({ alignment, position, spacing, customPosition, onClose, triggerAlignment }: MenuWithTriggerProps) => JSX.Element;
|
|
19
|
+
export {};
|