AxiomProvider
AxiomProvider provides all the context managers required for our components to work. It must be rendered at the root of your application and should be used only once.
Want to skip the docs? Try our MCP Server
#
Documentation
#
#
Usage
#
import { AxiomProvider } from "@optiaxiom/react";
export function App() {
return <AxiomProvider>{/* Your app code here */}</AxiomProvider>;
}#
Locale
#
Use the locale prop to set a BCP-47 language tag used to localize date and time components such as Calendar, DateRangePicker, Clock, and Time. This controls their captions, weekday headers, week start, range text, AM/PM labels, and numbering system. When omitted, the browser locale is used.
<AxiomProvider locale="fr-FR">{/* Your app code here */}</AxiomProvider>#
Related
#
Toast
Display brief popup notifications.
Tooltip
Popup with brief information shown when user interacts with an element using keyboard focus or mouse hover.
#
Props
#
#
AxiomProvider
#
Doesn't render its own HTML element.
Prop |
|---|
children
|
dialog |
localeBCP-47 language tag (e.g.
|
toast |
tooltip |
#
Changelog
#
#
3.1.2
#
- Added the
localeprop to override the locale used by date/time components
#
0.1.0
#
- Added component