Used to display a SVG icon.
import { Icon } from '@fintech-sandpit/ui/react';
import { faHome } from '@fortawesome/free-solid-svg-icons';
import { Icon } from '@fintech-sandpit/ui/vue';
import { faHome } from '@fortawesome/free-solid-svg-icons';
| Name | Type | Required | Default | Description |
|---|
as | IconDefinition | Yes | | Icon definition 1 |
colorScheme | ColorScheme | | | Icon color scheme 2 |
size | Size | | md | Icon size |
boxSize | CssUnit | | | Icon box size 3 |
| Name | Type | Required | Default | Description |
|---|
name | IconDefinition | Yes | | Icon definition 1 |
color-scheme | ColorScheme | | | Icon color scheme 2 |
size | Size | | md | Icon size |
box-size | CssUnit | | | Icon box size 3 |
- See Icons for the list of available icon definitions.
- By default, the icon will inherit the color of its parent element.
- If provided, the
size prop will be ignored.
type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'danger' | 'warning'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
type CssUnit = `${number}${'px' | 'em' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax' | '%'}`