Menu
Custom elements that appear on the screen wherever you want them to be positioned.
Example
Props
đšī¸ standard props
_top number
Top position of the menu
undefined_left number
Left position of the menu
undefined_width string
Width of the menu
"auto"_height string
Height of the menu
"auto"_maxHeight string
Maximum height of the menu
undefined_minWidth string
Minimum width of the menu
undefined_overflow string
Overflow behavior of the menu
"auto"_boxShadow string
Box shadow styling for the menu
undefined_borderRadius string
Border radius of the menu
undefined_activatorGap number
Gap between the activator and menu
5open boolean
Controls the visibility of the menu
falserefreshPosition boolean
Triggers recalculation of menu position
falseactivator HTMLElement
Element that triggers the menu
undefinedanchor "bottom" | "bottom-center" | "right" | "right-center" | "up" | "up-center" | "left" | "left-center"
Defines the menu alignment
"bottom"closeOnClickOutside boolean
Closes the menu when clicking outside
falseinAnimation (node: Element, params?: SlideParams | FlyParams | FadeParams) => TransitionConfig
Animation for menu entrance
flyinAnimationConfig SlideParams | FlyParams | FadeParams
Configuration for inAnimation
{ duration: 100, y: 10 }outAnimation (node: Element, params?: SlideParams | FlyParams | FadeParams) => TransitionConfig
Animation for menu exit
flyoutAnimationConfig SlideParams | FlyParams | FadeParams
Configuration for outAnimation
{ duration: 100, y: 10 }menuElement HTMLElement
Reference to the menu element
undefinedflipOnOverflow boolean
Flips the menu if it overflows viewport
falsestayInViewport boolean
Keeps the menu within the viewport
falseopeningId string
Unique identifier for the menu instance
undefinedđ¨ style props
Slots
Children
Content of the menu