Icon

Visual cues for enhancing user interaction.

About

Icon is built on top of ng-icons by @ashley-hunter .

Installation

ng g @spartan-ng/cli:ui icon

This will also install @ng-icons/core and @ng-icons/lucide . ng-icons supports multiple icon sets , each with its own package.

By default, spartan/ui components use the Lucide ( @ng-icons/lucide ) icon set. You can customize this behavior in two ways:

  • Replace @ng-icons/lucide entirely with another icon set - icon names vary and must be updated manually
  • Use multiple icon sets side-by-side by installing additional packages

Usage

import { HlmIcon } from '@spartan-ng/helm/icon';
import { NgIcon, provideIcons } from '@ng-icons/core';
<ng-icon hlm size="sm" name="lucideChevronRight" />

Examples

Size

Responsive Size

Use font-sizes (e.g. text-lg ) utilities to adjust icon size responsively. The HlmIcon directive is not required.

Multiple Icon Sets

lucideCircleArrowUp
remixAngularjsLine

Lucide Icons

Browse all available Lucide icons at lucide.dev/icons .

Helm API

HlmIcon

Selector: ng-icon[hlmIcon], ng-icon[hlm]

Inputs

PropTypeDefaultDescription
size IconSize this._config.size -
Input Group Hover Card