Icon
Portable named or authored vector geometry.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
enabled | boolean | No |
fill | string | No |
fillRule | string | No |
label | nullableString | No |
lineCap | string | No |
lineJoin | string | No |
name | string | No |
paths | list | No |
semantics | string | No |
stroke | string | No |
strokeWidth | number | No |
viewBox | list | No |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Icon name="check" label="Complete" class="w-6 h-6" />
Defaults, values, and validation
Geometry uses viewBox and a list of SVG path strings; named geometry must be installed. Decorative icons should not duplicate a surrounding control label.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
No component events.
Local commands
No local commands.