animation
Description
The animation of the popover.
Type
"bottom" | "left" | "right" | "scale" | "top" | "none"Default
'scale'Leave Yamada UI a star
StarMenu is a component that displays a common dropdown menu.
Description
The animation of the popover.
Type
"bottom" | "left" | "right" | "scale" | "top" | "none"Default
'scale'Description
If true, focus will be transferred to the first interactive element when the popover opens.
Type
booleanDefault
trueDescription
The boundary area for the popper. Used within the preventOverflow modifier.
Type
"clippingParents" | "scrollParent" | HTMLElementDefault
'clippingParents'Description
The number of delay time to close.
Type
numberDefault
200Description
If true, the popover will close when you blur out it by clicking outside or tabbing out.
Type
booleanDefault
trueDescription
If true, the popover will close when you hit the Esc key.
Type
booleanDefault
trueDescription
If true, the list element will be closed when value is selected.
Type
booleanDefault
trueDescription
If true, the popover will be initially opened.
Deprecated
Use defaultOpen instead
Type
booleanDescription
If true, the popover will be initially opened.
Type
booleanDescription
The animation duration.
Type
number | MotionLifecycleProps<number>Description
If provided, determines whether the popper will reposition itself on scroll and resize of the window.
Type
type ONLY_FOR_FORMAT =
| boolean
| { resize?: boolean | undefined; scroll?: boolean | undefined }Default
trueDescription
If true, the popper will change its placement and flip when it's about to overflow its boundary area.
Type
booleanDefault
trueDescription
The distance or margin between the reference and popper.
It is used internally to create an offset modifier.
Type
UIValue<number>Default
8Description
The ref of the element that should receive focus when the popover opens.
Type
RefObject<{ focus(): void }>Description
If true, the PopoverContent rendering will be deferred until the popover is open.
Deprecated
Use lazy instead
Type
booleanDefault
falseDescription
If true, the popover will be opened.
Deprecated
Use open instead
Type
booleanDescription
If true, the PopoverContent rendering will be deferred until the popover is open.
Type
booleanDefault
falseDescription
The lazy behavior of popover's content when not visible. Only works when lazy={true}
- unmount: The popover's content is always unmounted when not open.
- keepMounted: The popover's content initially unmounted, but stays mounted when popover is open.
Type
LazyModeDefault
'unmount'Description
If true, the popper will match the width of the reference at all times.
It's useful for autocomplete, date-picker and select patterns.
Type
booleanDefault
falseDescription
Array of popper.js modifiers. Check the docs to see the list of possible modifiers you can pass.
Type
Partial<Modifier<string, any>>[]Docs
https://popper.js.org/docs/v2/modifiers/Description
The main and cross-axis offset to displace popper element from its reference element.
Type
[number, number]Description
Callback fired when the popover closes.
Type
() => voidDescription
Callback fired when the popover opens.
Type
() => voidDescription
If true, the popover will be opened.
Type
booleanDescription
The number of delay time to open.
Type
numberDefault
200Description
The placement of the popper relative to its reference.
Type
UIValue<Placement>Default
'bottom'Description
If true, will prevent the popper from being cut off and ensure it's visible within the boundary area.
Type
booleanDefault
trueDescription
If true, focus will be returned to the element that triggers the popover when it closes.
Type
booleanDefault
trueDescription
The CSS positioning strategy to use.
Type
"absolute" | "fixed"Default
'absolute'Description
The animation of the popover.
Type
"bottom" | "left" | "right" | "scale" | "top" | "none"Default
'scale'Description
If true, focus will be transferred to the first interactive element when the popover opens.
Type
booleanDefault
trueDescription
The boundary area for the popper. Used within the preventOverflow modifier.
Type
"clippingParents" | "scrollParent" | HTMLElementDefault
'clippingParents'Description
The number of delay time to close.
Type
numberDefault
200Description
If true, the popover will close when you blur out it by clicking outside or tabbing out.
Type
booleanDefault
trueDescription
If true, the popover will close when you hit the Esc key.
Type
booleanDefault
trueDescription
If true, the list element will be closed when value is selected.
Type
booleanDefault
trueDescription
If true, the popover will be initially opened.
Deprecated
Use defaultOpen instead
Type
booleanDescription
If true, the popover will be initially opened.
Type
booleanDescription
The animation duration.
Type
number | MotionLifecycleProps<number>Description
If provided, determines whether the popper will reposition itself on scroll and resize of the window.
Type
type ONLY_FOR_FORMAT =
| boolean
| { resize?: boolean | undefined; scroll?: boolean | undefined }Default
trueDescription
If true, the popper will change its placement and flip when it's about to overflow its boundary area.
Type
booleanDefault
trueDescription
The distance or margin between the reference and popper.
It is used internally to create an offset modifier.
Type
UIValue<number>Default
8Description
The ref of the element that should receive focus when the popover opens.
Type
RefObject<{ focus(): void }>Description
If true, the PopoverContent rendering will be deferred until the popover is open.
Deprecated
Use lazy instead
Type
booleanDefault
falseDescription
If true, the popover will be opened.
Deprecated
Use open instead
Type
booleanDescription
If true, the PopoverContent rendering will be deferred until the popover is open.
Type
booleanDefault
falseDescription
The lazy behavior of popover's content when not visible. Only works when lazy={true}
- unmount: The popover's content is always unmounted when not open.
- keepMounted: The popover's content initially unmounted, but stays mounted when popover is open.
Type
LazyModeDefault
'unmount'Description
If true, the popper will match the width of the reference at all times.
It's useful for autocomplete, date-picker and select patterns.
Type
booleanDefault
falseDescription
Array of popper.js modifiers. Check the docs to see the list of possible modifiers you can pass.
Type
Partial<Modifier<string, any>>[]Docs
https://popper.js.org/docs/v2/modifiers/Description
The main and cross-axis offset to displace popper element from its reference element.
Type
[number, number]Description
Callback fired when the popover closes.
Type
() => voidDescription
Callback fired when the popover opens.
Type
() => voidDescription
If true, the popover will be opened.
Type
booleanDescription
The number of delay time to open.
Type
numberDefault
200Description
The placement of the popper relative to its reference.
Type
UIValue<Placement>Default
'bottom'Description
If true, will prevent the popper from being cut off and ensure it's visible within the boundary area.
Type
booleanDefault
trueDescription
If true, focus will be returned to the element that triggers the popover when it closes.
Type
booleanDefault
trueDescription
The CSS positioning strategy to use.
Type
"absolute" | "fixed"Default
'absolute'Description
The interaction that triggers the popover.
- hover: means the popover will open when you hover with mouse or focus with keyboard on the popover trigger.
- click: means the popover will open on click or press Enter to Space on keyboard.
Type
"click" | "contextmenu" | "hover" | "never"Default
'click'Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortalType
MenuIconPropsType
HTMLUIProps<"span">Description
The label of the group.
Type
stringDescription
Props for menu group element.
Type
HTMLUIProps<"header">Description
If true, the list element will be closed when selected.
Type
booleanDefault
falseDescription
Right-aligned label text content, useful for displaying hotkeys.
Type
stringDescription
If true, the menu item will be disabled.
Type
booleanDefault
falseDescription
If true, the menu item will be focusable.
Type
booleanDefault
falseDescription
The menu item icon to use.
Type
ReactElement<any, string | JSXElementConstructor<any>>Description
If true, the menu item will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the menu item will be focusable.
Deprecated
Use focusable instead.
Type
booleanDefault
falseDescription
If true, the checkbox or radio will be checked.
Type
booleanDefault
falseDescription
If true, the list element will be closed when selected.
Type
booleanDefault
falseDescription
If true, the menu item will be disabled.
Type
booleanDefault
falseDescription
If true, the menu item will be focusable.
Type
booleanDefault
falseDescription
The menu option item icon to use.
Type
ReactElement<any, string | JSXElementConstructor<any>>Description
If true, the checkbox or radio will be checked.
Deprecated
Use checked instead.
Type
booleanDefault
falseDescription
If true, the menu item will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the menu item will be focusable.
Deprecated
Use focusable instead.
Type
booleanDefault
falseDescription
The type of the menu option item.
Type
"checkbox" | "radio"Description
The value of the menu option item.
Type
stringType
MotionPropsWithoutChildrenDescription
The initial value of the menu item group.
Type
YDescription
The label of the group.
Type
stringDescription
Props for menu group element.
Type
HTMLUIProps<"header">Description
The callback fired when any children checkbox is checked or unchecked.
Type
(value: Y) => voidDescription
The type of the menu option group.
Type
"checkbox" | "radio"Default
'checkbox'Description
The value of the menu item group.
Type
YEdit this page on GitHub