ArtificialSenseDocs

Docs / Components

SenseIconComponent

Semantic inline SVG icons from @artificialsenselabs/ui for buttons, alerts, and form affordances.

Live demo: run nx serve showcase and open /components/icon (port 4202).

Overview

Category: Display / primitives. Selector: sense-icon. Import: import { SenseIconComponent } from '@artificialsenselabs/ui';

<sense-icon name="search" size="sm" ariaLabel="Search" />

API

Generated from libs/ui/src/lib/icon/sense-icon/sense-icon.component.ts โ€” run pnpm run docs:api to refresh.

Inputs
InputTypeDefaultDescription
nameSenseIconName'search' Glyph name from the built-in set. Default `search`.
sizeSenseIconSize'md' Visual scale: `sm` | `md` | `lg`. Default `md`.
ariaLabelstring | nullnull Accessible name โ€” omit when the icon is decorative or inside a labelled control.
spinbooleanfalse When true, applies spin animation (also auto-enabled for the `spinner` glyph).

Accessibility

  • Decorative icons set aria-hidden="true" on host and SVG.
  • Labelled icons expose role="img" and aria-label.
  • Prefer parent control labels (e.g. sense-button) over per-icon labels in composites.
  • Spin animation pauses under prefers-reduced-motion: reduce.