Skip to main content

Icon

@spartanfx/react v1.2.2


@spartanfx/react / index / Icon

Variable: Icon

const Icon: React.FC<IIconProps>;

Renders an in-house inline-SVG icon with fill="currentColor", so it inherits text color and adapts to light/dark themes automatically. The drop-in replacement for Fluent's <Icon iconName> / <FontIcon iconName> — with zero runtime font/CDN dependency.

Example

<Icon name="ChevronDown" />
<Icon name="Delete" size={20} title="Delete" onClick={onDelete} />