Skip to main content

Icon()

Icon(__namedParameters): Element

Icon - A wrapper component for displaying SVG icons with consistent sizing

Provides a standardized container for SVG icons with built-in size variants and proper accessibility support. Works seamlessly with the Accelint icon library and supports custom SVG elements with consistent styling and alignment.

Parameters

__namedParameters

IconProps

Returns

Element

Examples

// Basic icon usage
<Icon>
<Settings />
</Icon>
// Icon with different sizes
<Icon size="small">
<User />
</Icon>
<Icon size="large">
<Dashboard />
</Icon>
// Icon in button context (automatically inherits sizing)
<Button>
<Icon><Plus /></Icon>
Add Item
</Button>