Components

Icon

Render lucide icons by name, or pass names to other components.

Use Icon for inline icons, or pass the same names to any component that accepts an icon prop (Card, Callout, Accordion, and more).

Names are case-insensitive and accept circle-check, circle_check, or CircleCheck. They are collected from content and docs.json at build time into src/lib/icon-registry.generated.ts. An unrecognized name renders nothing and logs a warning in development.

Basic usage#

Deploy your site in one command.

Sizing and color#

On other components#

Installation

Create a standalone Shiso site.

Properties#

NameTypeDescription
iconstring

A lucide icon name.

srcstring

Image path or URL. Used instead of icon when set.

colorstring

CSS color for the icon stroke/fill.

sizenumber

Icon size in pixels.

Default: 16
classNamestring

Extra class names on the rendered element.

Last updated on