Base · Actions
Button
Pill-shaped action: kind = primary (ink fill, ivory text) · outline (hairline, the default) · ghost (no border) · danger (red hairline and text) · ondark (ivory fill, only on contre-jour cards). size="sm" for tight rows.
Notes
- One
primaryper context. Destructive actions aredanger. - Leading glyph via
icon(13px). Label 12.5px / 500. - Table trailing actions are links, not buttons.
- Consumer provides: the label (
children),onClick, optionalicon,disabled. - Not used in the Solarus app: the kinds
dangerandondark. Other products may use them.
Code
// React · window.Solarus <Button kind size icon onClick disabled>label</Button> /* HTML classes · bundle.css */ .btn