Icon
The Icon component helps modify color and size easily.
Import
Importimport { Icon } from '@backyard-ui/core';Usage
UsageAppearance
AppearanceUse the appearance or color prop to change the visual appearance.
Size
SizeUse the size prop to increase the visual size.
API Reference
API Reference- appearanceDescription The Icon appearanceType
"success" | "critical" | "info" | "warning" | "primary" | "secondary" | "tertiary" - colorDescription The Icon colorType
"black" | "white" | "current"Defaultcurrent - sizeDescription The Icon sizeType
"xs" | "sm" | "md" | "lg" | "xl"Defaultmd - labelDescription The acessible labelType
string - roleDescription The html role of the icon.Type
"img" | "presentation"Defaultpresentation