IIconButtonProps
@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
| Property | Type | Description |
|---|---|---|
name | string | In-house glyph to render (see SpartanIconName). |
Options
| Property | Type | Description |
|---|---|---|
iconSize? | number | Pixel size of the glyph. Default 16. |
Appearance & theming
| Property | Type | Description |
|---|---|---|
iconColor? | string | Glyph 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.