s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Display and status

Icon

Props for Icon component

Public export

typescript
import { Icon } from '@happyvertical/smrt-ui/display';
Import path
@happyvertical/smrt-ui/display
Props
6
Props described
6 of 6
Bindable state
0
Callback events
0
Verified release
0.57.40

Props

NameTypeRequiredDescription
namestringNoPreset icon name
pathstringNoCustom SVG path
sizestring | numberNoIcon size (number for pixels, string for CSS value)
colorstringNoIcon color
viewBoxstringNoSVG viewBox
aria-labelstringNoAccessible label (makes icon informative)

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation