Icons.icon
Server-rendered
Renders a Lucide icon by name.
name accepts either kebab-case ("chevron-down") or snake_case ("chevron_down").
References
Icon example 1
<.icon name="chevron-down" class="size-4 text-muted-foreground" aria-hidden="true" />
Attributes
| Name | Type | Default | Values | Global Includes |
|---|---|---|---|---|
class
|
:string |
— | — | — |
name
Required
|
:string |
— | — | — |
rest
|
:global |
— | — | — |
Slots
No slots declared.