Skip to main content

Icon

Portable named or authored vector geometry.

Props​

PropTypeRequired
accessibilityHintstringNo
enabledbooleanNo
fillstringNo
fillRulestringNo
labelnullableStringNo
lineCapstringNo
lineJoinstringNo
namestringNo
pathslistNo
semanticsstringNo
strokestringNo
strokeWidthnumberNo
viewBoxlistNo

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.

Native primitive index · Events · Host APIs