Icons
199 lucide icons ship with SparkUI. Register more with SparkIcons.register(), or map a name to a HarmonyOS Symbol with SparkIcons.useSymbol().
Usage
arkts
SIcon({ name: 'heart', sizing: 20, color: theme.colors.destructive })API
Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.
SIcon
Unified icon. Renders a lucide vector icon by name, or a HarmonyOS Symbol when one is mapped via SparkIcons.useSymbol() or passed directly through symbol.
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | '' | |
symbol | Resource | undefined | undefined | HarmonyOS Symbol resource; takes precedence over name. |
sizing | number | 16 | vp |
color | ResourceColor | undefined | undefined | Defaults to the foreground token. |
strokeWidth | number | 2 | Stroke width in the 24-unit icon box (lucide default 2); scales with sizing. |