Workbench

Button workbench

Four variants, every state, as MUI, shadcn/ui and plain CSS. All three read the button component tokens.

Density

Guidance and code: Button docs.

Known MUI gap

The MUI theme does not apply the secondary and disabled button tokens yet, and its buttons are 36px tall instead of 40px (ASDS-44).

Primary

StateMUIshadcnPlain CSS
Default
Hover
Focuskeyboard focus
Disabled
Livetry it

Secondary

StateMUIshadcnPlain CSS
Default
Hover
Focuskeyboard focus
Disabled
Livetry it

Danger

StateMUIshadcnPlain CSS
Default
Hover
Focuskeyboard focus
Disabled
Livetry it

Text

StateMUIshadcnPlain CSS
Default
Hover
Focuskeyboard focus
Disabled
Livetry it