Installation
Pick your framework and package manager, install, and render a first icon.
Choose your setup
Select a framework and a package manager. The command, the example and the preview update together, and your package manager choice is remembered across the docs.
pnpm add @axcore/xicons-reactimport { IconCamera } from "@axcore/xicons-react";
export default function App() {
return <IconCamera size={32} />;
}Live preview
Requirements
| Package | Requires |
|---|---|
@axcore/xicons-react | react ^19.3.1 |
@axcore/xicons-react-native | react ^19.3.1, react-native >=0.78, react-native-svg >=15 |
@axcore/xicons | Nothing at runtime. Node 22+ for its own tooling. |
Every package is ES modules only ("type": "module"). Use import; from CommonJS, use await import().
Common setup mistakes
- Installing only the core package for React.
@axcore/xiconsexports icon data, not components. Install@axcore/xicons-reactfor JSX. - Forgetting `react-native-svg` in the app. It is a dependency of the native package, but autolinking only sees packages in your app's own
package.json. - Guessing export names. Names are
Iconplus the PascalCase file name; copy them from the explorer or read the naming guide. - Using `require()`. The packages are ESM only.
Next steps
Something wrong or missing?Open an issue