Icons
The glyphs ARK draws, as React components: round, outlined, with a 2px stroke.
Install the package and import each icon by name.
Install
@kela-systems/ui-components brings the icons with it. To install them on their own:
pnpm add @kela-systems/iconsImport
import { IconAirplane } from "@kela-systems/icons/outline";
import { KelaLogo } from "@kela-systems/icons/brand";
import type { IconProps } from "@kela-systems/icons";
<IconAirplane size={16} />;
<KelaLogo label="Kela" />;| Import | What it holds |
|---|---|
@kela-systems/icons/outline | The glyphs, each named Icon<Name> |
@kela-systems/icons/brand | KelaLogo |
@kela-systems/icons | The IconProps type |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | string | 24 | Width and height. A number is pixels. |
color | string | currentColor | Overrides the text colour. Prefer a text utility. |
ariaLabel | string | none | The icon's name for screen readers. |
ariaHidden | boolean | true | Set to false together with ariaLabel. |
An icon also takes every SVG attribute, including className.