Icon

A versatile icon component that encapsulates lucide-angular's icons with a consistent API and styling, providing an abstraction layer that facilitates future icon library swapping.

PreviousNext

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add icon

Examples

default

sizes

Small
Default
Large
Extra Large

colors

stroke width

Stroke 1
Stroke 2
Stroke 3
Stroke 4

searchable

Note: These are only the icons currently used in our documentation.
For the complete icon library, visit lucide.dev/icons.
90 of 90 icons

API Reference

z-icon

Property Description Type Default
[class] Additional CSS classes ClassValue ''
[zType] (required) The Lucide icon to display LucideIconData
[zSize] Icon size variant 'sm' | 'default' | 'lg' | 'xl' 'default'
[zStrokeWidth] The stroke width of the icon lines number 2
[zAbsoluteStrokeWidth] Whether to use absolute stroke width (scales with icon size) boolean false