Skip to main content

Icons

Aidash Components uses the HugeIcons free set — over 5,000 line icons rendered as SVG. All icons inherit colour from currentColor, so they theme automatically.

HugeIcons
Import icons from @hugeicons/core-free-icons and render with the HugeiconsIcon component. See hugeicons.com for the full catalogue.

Usage

Import the icon and render it inline. Size and colour flow from the surrounding text by default.

tsx
1import { HugeiconsIcon } from '@hugeicons/react';2import { Search01Icon } from '@hugeicons/core-free-icons';3 4<HugeiconsIcon icon={Search01Icon} size={16} className="text-brand-500" />

Sizes

Convention: 12/14 for chips, 16/18 for buttons, 20/24 for feature callouts.

12px
14px
16px
20px
24px
32px

Colour

Icons inherit currentColor, so a Tailwind text-* class colours them alongside adjacent text.

Foreground
Muted
Brand
Success
Warn
Danger

Common icons

A subset of the icons the design system reaches for most often. Click any tile to copy its import name.

Accessibility

Two rules for icons and screen readers.

Decorative icons
When an icon sits next to a text label, mark it aria-hidden="true"so screen readers announce the label once, not twice.

Snippet

Both accessibility rules applied together — labelled button, hidden icon.

button-with-icon.tsx
tsx
import { HugeiconsIcon } from '@hugeicons/react';
import { Download04Icon } from '@hugeicons/core-free-icons';

<button aria-label="Download report">
  <HugeiconsIcon icon={Download04Icon} size={16} aria-hidden="true" />
</button>

API

Props accepted by HugeiconsIcon.

PropTypeDefaultDescription
iconIconSvgElementThe icon to render. Import from @hugeicons/core-free-icons.
sizenumber24Icon width/height in pixels.
classNamestringundefinedTailwind or CSS class. Controls colour via currentColor.
styleCSSPropertiesundefinedInline styles.
aria-hidden"true" | booleanundefinedDecorative icons alongside text.
aria-labelstringundefinedStandalone icon-only controls.

Also see

Related foundation topics.