UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

22 lines (21 loc) 716 B
import { type BifrostLocale } from "../../locales/en-us.js"; export type BifrostProps = { /** Your entire app (or at least the parts using bifrost components) */ children?: React.ReactNode; /** Set current locale for all descendant Bifrost components */ locale?: BifrostLocale; }; /** * Configure Bifrost locale globally by wrapping this component around your app * * @see https://bifrost.intility.com/react/bifrost * * @example * import nbNO from "@intility/bifrost-react/locales/nb-no"; * * <Bifrost locale={nbNO}> * Your norwegian app here * </Bifrost> */ declare const Bifrost: ({ children, locale }: BifrostProps) => import("react/jsx-runtime").JSX.Element; export default Bifrost;