Skip to content
AXIcons
AXIcons
Theme

Quick start

Install AXIcons, import an icon, render it and style it in about a minute.

1. Install

Terminal
pnpm add @axcore/xicons-react

2. Import an icon

Every icon is a named export: Icon plus the PascalCase file name. camera becomes IconCamera, heart-filled becomes IconHeartFilled.

React
import { IconCamera, IconHeartFilled } from "@axcore/xicons-react";

3. Render it

Icons render a 24px <svg> that paints with currentColor, so they take the colour of the text around them.

capture-button.tsx
export function CaptureButton() {
  return (
    <button className="flex items-center gap-2">
      <IconCamera />
      Take photo
    </button>
  );
}

4. Customise it

Pass size, strokeWidth and any <svg> prop, or use classes. Try it:

16202432
Icon
Colour
camera · outline
import { IconCamera } from "@axcore/xicons-react";

<IconCamera size={48} />

5. Find more icons

Search all icons in the icon explorer. Select one to copy its import, JSX or SVG. Press / in the explorer to jump to search, or ⌘K anywhere.

Something wrong or missing?Open an issue

Jump to
Browse all iconsIcon library
InstallationGetting started
Quick startGetting started
ReactIntegrations
React NativeIntegrations
↑↓ navigateopen⌘K toggle