Config
The @nizivo/react/config entry.
Import
import { NizivoConfig } from '@nizivo/react/config';Props
Client component Renders no element of its own. Props: NizivoConfigProps. Source: src/config/config.client.tsx.
| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | – | |
labels | NizivoLabels | – | Built-in strings for the client parts in this scope. A part's own |
locale | string | 'en-US' | BCP 47 tag used by engine-backed parts. |
Exports
NizivoConfigPropstypeimport type { NizivoConfigProps } from '@nizivo/react/config'The props of
NizivoConfig, listed above.NizivoLabelstypeimport type { NizivoLabels } from '@nizivo/react/config'Built-in strings for every client part in the scope, shaped like the
enUScatalogue (@nizivo/react/locales/en-US): keyed by component, every key and every string optional, so a whole catalogue of another locale fits. Read by the client parts the Strings guide lists; the other keys (server parts such as Pagination, Button and Breadcrumb, which cannot read a context, and AlertDismiss) are ignored here, and those parts takelabelsper instance.type NizivoLabels = { [K in keyof typeof enUS]?: Partial<(typeof enUS)[K]>; }