GuidesInstallation

Getting Started

Installation

Install package

Install the @optiaxiom/react package using your package manager of choice:

npm install @optiaxiom/react

Setup CSS imports

Make sure to setup transpiling to handle CSS Imports.

Add global provider

Wrap your application with AxiomProvider:

import { AxiomProvider } from "@optiaxiom/react";
 
export function App() {
  return <AxiomProvider>{/* Your app code here */}</AxiomProvider>;
}

Usage

Basic usage

Import components from @optiaxiom/react and use them:

import { Button } from "@optiaxiom/react";
 
export function MyComponent() {
  return <Button>Hello World!</Button>;
}

What to read next

Components

Discover all the components available in our library and how to use them.

Styling

Learn about our styling solution and how to consume our design tokens.

Icons

Font Awesome icon kit for use with the Optimizely Design System