@axle-energy/components
) which can be imported into your existing React project.
These components are pre-configured to make authenticated API calls to Axle, and expose complete theming control
through CSS variables, or a helper React context.
Example integration
Theming
You can theme the components by either:- Setting CSS variables. Components use standard ShadCN/UI theming, so you’re able to theme our components by setting the default ShadCN/UI theming variables.
- Using our
ColorThemeContextProvider
helper. Axle also exposes a theming provider (which also works by setting CSS variables), with light/dark mode theming support:Theming example