Skip to main content

IIconButtonProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IIconButtonProps

Interface: IIconButtonProps

Props for IconButton. A drop-in for Fluent's IconButton: it accepts the same IButtonProps surface (onClick, title, ariaLabel, disabled, checked, menuProps, styles, className, …) but takes the glyph as an in-house icon name instead of iconProps={{ iconName }}. *

Extends

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

Properties

Required

PropertyTypeDescription
namestringIn-house glyph to render (see SpartanIconName).

Options

PropertyTypeDescription
iconSize?numberPixel size of the glyph. Default 16.

Appearance & theming

PropertyTypeDescription
iconColor?stringGlyph color. Defaults to inheriting the button's text color (themed); 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.