Skip to main content
Version: 1.1.0

ActionButton

@spartanfx/react v1.1.0


@spartanfx/react / index / ActionButton

Variable: ActionButton

const ActionButton: React.FC<IActionButtonProps>;

Command-style button with an in-house inline-SVG icon and a text label — the drop-in for Fluent's ActionButton. When menuProps is supplied it draws its own in-house dropdown caret. Wraps Fluent's DefaultButton for identical behaviour and theming; only the glyph + caret are in-house SVG.

Example

<ActionButton name="Add" text="Add task" onClick={onAdd} />
<ActionButton name="ColumnOptions" text="Columns" onClick={openColumns} />