ReadonlyariaAccessible label. When provided, aria-hidden is removed.
ReadonlysizeIcon size in pixels (width & height). Defaults to 24.
ReadonlysvgSVG inner content — the markup inside the <svg> element
(paths, circles, lines, etc.).
Use values from the built-in UIIcons registry or supply your own
custom SVG markup. The content is rendered inside an <svg> wrapper
with viewBox="0 0 24 24", so design custom icons on a 24 × 24 grid.
Inline SVG icon component.
Renders SVG inner content (paths, circles, etc.) inside a properly configured
<svg>wrapper. The icon inherits the current text colour viacurrentColor.The library ships a categorised registry of Lucide icons (
UIIcons.Lucide.*), but you can also supply your own custom SVG content — any valid SVG inner markup will work.The Lucide icon set is created by the Lucide Contributors, originally forked from Feather Icons by Cole Bemis, and is licensed under the ISC Licence.
See
Using built-in icons
Extending with custom icons
The
svginput accepts any string of SVG inner markup — the component wraps it in an<svg>element withviewBox="0 0 24 24",stroke="currentColor",fill="none",stroke-width="2",stroke-linecap="round", andstroke-linejoin="round". Design your icons on a 24 × 24 grid using stroked paths to match the built-in set.1. Define a custom icon registry
2. Use in a template
Tips for custom icons
viewBox).fill="none"andstroke="currentColor". For filled icons, addfill="currentColor"andstroke="none"directly on your<path>or<circle>.colorviacurrentColor. Override with a CSS rule onui-iconif needed.constobject (likeUIIcons.Lucide) for discoverability and tree-shaking.