A button for the sidebar, sidebar-dropdown, and header-dropdown.
Props
Name
Description
Type
Default
active
If the button should display as active
boolean
false
alertLevel
Display a dot on the icon, to attract attention to the button.
erroror
okayor
warningor
undefined
closeOnClick
If the parent popup should close when clicked.
boolean
false
count
Display a counter in place of the icon.
numberor
undefined
disabled
If the button should be disabled.
boolean
false
icon
Display an icon on the left.
[namespace: stringor
symbol, name: string]or
stringor
undefined
level
Apply an indent to the left of the button, for basic nesting.
numberor
undefined
priority
When deciding the active child, if multiple are active, the highest priority wins.
number
0
Events
Event
Detail
Description
requestClose
any
Triggers the parent popup to close.
Methods
Name
Signature
Description
isActive
isActive() => Promise<boolean>
If the button is currently active
Parts
Name
Description
badge
The badge element, if rendered.
button
The button element.
counter
The counter element, if rendered.
icon
The icon element, if rendered.