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/icons

Import

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" />;
ImportWhat it holds
@kela-systems/icons/outlineThe glyphs, each named Icon<Name>
@kela-systems/icons/brandKelaLogo
@kela-systems/iconsThe IconProps type

Props

PropTypeDefaultDescription
sizenumber | string24Width and height. A number is pixels.
colorstringcurrentColorOverrides the text colour. Prefer a text utility.
ariaLabelstringnoneThe icon's name for screen readers.
ariaHiddenbooleantrueSet to false together with ariaLabel.

An icon also takes every SVG attribute, including className.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.