Quick start
Install AXIcons, import an icon, render it and style it in about a minute.
1. Install
pnpm add @axcore/xicons-react2. Import an icon
Every icon is a named export: Icon plus the PascalCase file name. camera becomes IconCamera, heart-filled becomes IconHeartFilled.
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.
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
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