Skip to main content

IActionButtonProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IActionButtonProps

Interface: IActionButtonProps

Props for ActionButton. A drop-in for Fluent's ActionButton: same IButtonProps surface (text, onClick, disabled, checked, menuProps, styles, …), but the glyph is an in-house icon name instead of iconProps={{ iconName }}. *

Extends

  • Omit<IButtonProps, "iconProps" | "onRenderIcon" | "menuIconProps" | "onRenderMenuIcon">

Properties

Options

PropertyTypeDescription
iconSize?numberPixel size of the glyph. Default 16.
name?stringIn-house glyph to render to the left of the text (see SpartanIconName). Optional — omit for a text-only command button.

Appearance & theming

PropertyTypeDescription
iconColor?stringGlyph color. Defaults to the theme accent (matching Fluent ActionButton); also honors styles={{ icon: { color } }}. Set explicitly to override.

+ 396 inherited members. standard HTML/ARIA attributes (e.g. className, onClick, aria-*) are also accepted but omitted here for clarity.