Elements Code
Back to Elements

Code

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

code

Syntax-highlighted code display.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
variant "inline" | "block" "inline"
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.