Icon
A wrapper for Lucide Icons that is primarily styled with Tailwind utility classes. Browse the Lucide library to see what you can use.
Source Tailwind CSS
Installation
templui add iconExamples
Colored
Filled
Sizes
API Reference
Required parameter
Hover for description
Icon
Wrapper component for Lucide Icons. Style icons with `icon.Props{Class: "..."}`.
| Name | Type | Default |
|---|---|---|
The name of the Lucide icon to display (e.g., 'heart', 'user', 'star'). | | - |
Tailwind utility classes passed via `icon.Props{Class: "..."}`, for example `size-6 text-red-500 fill-current`. | | |