Skip to content

Icons

<atlas-icon> renders SVG icons from a central registry by name.

Built-in icons

The library registers the icons its components need under the atlas: namespace (atlas:check, atlas:chevron-down, atlas:search…). They work without any setup.

Registering app icons

Register the icons your app uses once, for example from lucide-static with the fromLucide adapter, then refer to them by kebab-case name:

src/app/icons.ts
import { fromLucide } from '@atlas/components/core';
import { Search, Save, Trash2 } from 'lucide-static';

export const appIcons = fromLucide({ Search, Save, Trash2 });
template
<atlas-icon name="trash-2" [size]="16" />

Overriding an Atlas icon

Register an icon under the same atlas: name to replace it everywhere the library uses it:

src/app/app.config.ts
provideAtlas({
    icons: {
        'atlas:search': { name: 'atlas:search', svg: '<svg>…your icon…</svg>' },
    },
});