A menu that displays a list of actions or options when triggered.
For more examples, visit the Storybook.
StudsDropdownMenu
PropsThe open state of the dropdown menu when it is initially rendered.
The controlled open state of the dropdown menu.
Event handler called when the open state of the dropdown menu changes.
The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
The reading direction of submenus when applicable
StudsDropdownMenuTrigger
PropsIf true, the component will render as a child of the parent component.
StudsDropdownPortal
PropsThe container element to which the dropdown menu will be appended.
If true, the dropdown menu will be mounted to the container regardless of its position in the DOM.
StudsDropdownMenuContent
, StudsDropdownMenuSubContent
PropsIf true, the component will render as a child of the parent component.
If true, the dropdown menu will loop when navigating with arrow keys.
Event handler called when the dropdown menu is closed and focus is returned to the trigger.
Event handler called when the escape key is pressed while the dropdown menu is open.
Event handler called when a pointer is pressed outside the dropdown menu.
Event handler called when focus is moved outside the dropdown menu.
Event handler called when interaction occurs outside the dropdown menu.
If true, the dropdown menu will be mounted to the container
The side of the trigger where the dropdown menu will be positioned.
The distance in pixels from the trigger.
The preferred alignment against the trigger.
The distance in pixels from the trigger.
If true, the dropdown menu will avoid collisions with the viewport.
The boundary element to which the dropdown menu will be constrained.
The padding in pixels to be applied to the collision boundary.
The padding in pixels to be applied to the arrow element.
If true, the dropdown menu will be sticky to the viewport.
If true, the dropdown menu will be hidden when it is detached from the trigger.
StudsDropdownMenuItem
PropsIf true, the component will render as a child of the parent component.
Event handler called when the item is selected.
Optional text used for typeahead purposes
Whether to render the item with indentation to account for the presence of a checkbox or radio indicator.
When true, prevents the user from interacting with the item.
StudsDropdownMenuCheckboxItem
PropsIf true, the component will render as a child of the parent component.
The controlled checked state of the item.
Event handler called when the checked state changes.
When true, prevents the user from interacting with the item.
Event handler called when the item is selected.
Optional text used for typeahead purposes
StudsDropdownMenuRadioGroup
PropsIf true, the component will render as a child of the parent component.
The value of the selected item in the group.
Event handler called when the value changes.
StudsDropdownMenuRadioItem
PropsIf true, the component will render as a child of the parent component.
The unique value of the item.
When true, prevents the user from interacting with the item.
Event handler called when the item is selected.
Optional text used for typeahead purposes
StudsDropdownMenuSub
PropsThe open state of the submenu when it is initially rendered.
The controlled open state of the submenu.
Event handler called when the open state of the submenu changes.
StudsDropdownMenuSubTrigger
PropsIf true, the component will render as a child of the parent component.
Whether to render the trigger with indentation.
When true, prevents the user from interacting with the trigger.
Optional text used for typeahead purposes
StudsDropdownMenuGroup
, StudsDropdownMenuLabel
, StudsDropdownMenuSeparator
PropsIf true, the component will render as a child of the parent component.
For more examples, visit the Storybook.
StudsDropdownMenu
PropsThe open state of the dropdown menu when it is initially rendered.
The controlled open state of the dropdown menu.
Event handler called when the open state of the dropdown menu changes.
The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
The reading direction of submenus when applicable
StudsDropdownMenuTrigger
PropsIf true, the component will render as a child of the parent component.
StudsDropdownPortal
PropsThe container element to which the dropdown menu will be appended.
If true, the dropdown menu will be mounted to the container regardless of its position in the DOM.
StudsDropdownMenuContent
, StudsDropdownMenuSubContent
PropsIf true, the component will render as a child of the parent component.
If true, the dropdown menu will loop when navigating with arrow keys.
Event handler called when the dropdown menu is closed and focus is returned to the trigger.
Event handler called when the escape key is pressed while the dropdown menu is open.
Event handler called when a pointer is pressed outside the dropdown menu.
Event handler called when focus is moved outside the dropdown menu.
Event handler called when interaction occurs outside the dropdown menu.
If true, the dropdown menu will be mounted to the container
The side of the trigger where the dropdown menu will be positioned.
The distance in pixels from the trigger.
The preferred alignment against the trigger.
The distance in pixels from the trigger.
If true, the dropdown menu will avoid collisions with the viewport.
The boundary element to which the dropdown menu will be constrained.
The padding in pixels to be applied to the collision boundary.
The padding in pixels to be applied to the arrow element.
If true, the dropdown menu will be sticky to the viewport.
If true, the dropdown menu will be hidden when it is detached from the trigger.
StudsDropdownMenuItem
PropsIf true, the component will render as a child of the parent component.
Event handler called when the item is selected.
Optional text used for typeahead purposes
Whether to render the item with indentation to account for the presence of a checkbox or radio indicator.
When true, prevents the user from interacting with the item.
StudsDropdownMenuCheckboxItem
PropsIf true, the component will render as a child of the parent component.
The controlled checked state of the item.
Event handler called when the checked state changes.
When true, prevents the user from interacting with the item.
Event handler called when the item is selected.
Optional text used for typeahead purposes
StudsDropdownMenuRadioGroup
PropsIf true, the component will render as a child of the parent component.
The value of the selected item in the group.
Event handler called when the value changes.
StudsDropdownMenuRadioItem
PropsIf true, the component will render as a child of the parent component.
The unique value of the item.
When true, prevents the user from interacting with the item.
Event handler called when the item is selected.
Optional text used for typeahead purposes
StudsDropdownMenuSub
PropsThe open state of the submenu when it is initially rendered.
The controlled open state of the submenu.
Event handler called when the open state of the submenu changes.
StudsDropdownMenuSubTrigger
PropsIf true, the component will render as a child of the parent component.
Whether to render the trigger with indentation.
When true, prevents the user from interacting with the trigger.
Optional text used for typeahead purposes
StudsDropdownMenuGroup
, StudsDropdownMenuLabel
, StudsDropdownMenuSeparator
PropsIf true, the component will render as a child of the parent component.
For more examples, visit the Storybook.
StudsDropdownMenu
ParametersGets or sets the variant style of the dropdown menu. Options include Default, Checkbox, and Radio.
Gets or sets the callback that is invoked when a menu item is clicked.
Event fired when a selection changes in checkbox or radio mode.
Gets or sets the child content.
Specifies additional custom attributes that will be rendered by the component.
Gets or sets the callback that is invoked when the mouse enters an item.
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
StudsDropdownMenuTrigger
ParametersThe content to be rendered inside the dropdown menu trigger.
StudsDropdownMenuContent
ParametersGets or sets the child content to be displayed within the dropdown menu.
StudsDropdownMenuItem
ParametersGets or sets the child content. When provided, the item becomes a submenu.
Gets or sets the text displayed in the menu item.
Gets or sets the keyboard shortcut text displayed on the right side of the menu item.
Gets or sets the value associated with the menu item.
Gets or sets whether the item is selected. Used with Checkbox and Radio variants.
Event callback when the selection state changes.
Gets or sets the custom click callback for the menu item.
Specifies additional custom attributes that will be rendered by the component.
Gets or sets the callback that is invoked when the mouse enters an item.
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
StudsDropdownMenuLabel
ParametersGets or sets the child content.
Gets or sets the text for the label.
Specifies additional custom attributes that will be rendered by the component.
Gets or sets the callback that is invoked when the mouse enters an item.
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
StudsDropdownMenuSeperator
ParametersSpecifies additional custom attributes that will be rendered by the component.
Gets or sets the callback that is invoked when the mouse enters an item.
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.