components/bits/AdaptiveButton#
AdaptiveButton()#
Parameters#
| Parameter | Type |
|---|---|
props |
AdaptiveButtonProps |
Returns#
Element
AdaptiveGroupContext#
AdaptiveButtonProps#
Extends#
Omit<MuiButtonProps,"children">
Indexable#
Properties#
forceMode?#
Force a specific display mode (escape hatch / standalone use).
icon?#
Icon component. Required for icon-only mode.
iconPosition?#
Which side the icon sits on (default 'start')
kind?#
Colour variant reusing existing CSS-variable styled bases
label#
Full text label (always shown in tooltip)
labelShort?#
Abbreviated label for medium widths. Falls back to label when omitted.
pinned?#
Never collapse this button.
priority?#
Collapse priority — higher number = collapses later. Default 0.
shortcutHint?#
Keyboard shortcut hint shown when Alt is held
tooltip?#
Tooltip text. Defaults to label.
tooltipPlacement?#
Tooltip placement
AdaptiveButtonRegistration#
Properties#
hasIcon#
hasShortLabel#
measuredWidths?#
Measured natural widths for each display mode (px)
full#
icon#
short#
pinned#
priority#
AdaptiveGroupContextValue#
Properties#
getMode#
Get the computed display mode for a button, or undefined if standalone
Parameters#
| Parameter | Type |
|---|---|
id |
string |
Returns#
DisplayMode | undefined
register#
Register a button so the group can manage it
Parameters#
| Parameter | Type |
|---|---|
id |
string |
config |
AdaptiveButtonRegistration |
Returns#
void
unregister#
Unregister on unmount
Parameters#
| Parameter | Type |
|---|---|
id |
string |
Returns#
void