Skip to content

SidebarMenuButton ​

Overview ​

A sidebar menu button that shows a tooltip when the sidebar is collapsed.

Props ​

NameTypeRequiredDefaultDescription
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
asstring|object"button"The element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element.
variantstring"default"The style variant.
sizestring"default"The size variant.
isActivebooleanfalseWhether the button represents the current active item.
tooltipstring|objectundefinedTooltip content shown when sidebar is collapsed. Pass a string or component.

Slots ​

default ​

Slot.

Source ​

client/lib/navigation/sidebar/SidebarMenuButton.vue