Companies and dates
Country
CountryToggle
Switch BookiLocale between Norway and US.
The person sees
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
"@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"Usage example
import { BookiLocaleProvider, CountryToggle } from "@booki-aui/react"
<BookiLocaleProvider defaultCountry="NO">
<CountryToggle />
</BookiLocaleProvider>Switching to US changes the active profile for other Booki controls under the provider. This is a person's setting.
Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".