Interface: RasdProviderProps
Defined in: types.ts:528
Properties
children
children: ReactNode;
Defined in: types.ts:529
className?
optional className?: string;
Defined in: types.ts:556
classNames?
optional classNames?: PartClassNames;
Defined in: types.ts:598
Per-part class names, keyed by component and then by part (docs/12 §5.1).
classNames={{ TextField: { input: 'input input-bordered' } }}
Keyed by component first because part names like root and input repeat
across components. Values may be functions of the part's state. These ADD to
the default class rather than replacing it, and the default comes first, so
a host class wins in the cascade at equal specificity.
cssNonce?
optional cssNonce?: string;
Defined in: types.ts:606
Nonce for the injected token <style> (docs/06 §2.1). Required under a
strict style-src; ignored by the other tokens modes.
license?
optional license?: LicenseHandle;
Defined in: types.ts:541
locale?
optional locale?: string;
Defined in: types.ts:551
media?
optional media?: MediaAdapters;
Defined in: types.ts:548
Capture adapters (web from @rasd/media, native, or a host bundle).
Omitted, the renderer resolves the web adapters lazily — nothing platform
specific is touched until a capture question is actually used.
messages?
optional messages?: Readonly<Record<string, Readonly<Record<string, string>>>>;
Defined in: types.ts:553
Chrome string overrides, deep-merged over the built-ins per locale.
mode?
optional mode?: ThemeMode;
Defined in: types.ts:555
registry?
optional registry?: Registry;
Defined in: types.ts:554
storage?
optional storage?: RasdStorage | (() => RasdStorage);
Defined in: types.ts:540
The storage adapter, or a factory that makes one.
Pass the FACTORY form under SSR. createDexieStorage() reaches for
IndexedDB, which does not exist on a server, so a host that constructs the
adapter in its own module scope crashes the render before the first paint
— and a host that constructs it inside a client component makes a new one
on every render. The factory is called once, in the browser, on the first
render that has a window (docs/21 §5, docs/06 §2).
style?
optional style?: CSSProperties;
Defined in: types.ts:557
styles?
optional styles?: PartStyles;
Defined in: types.ts:600
Per-part inline styles, same keying as classNames (docs/12 §5.1).
sync?
optional sync?: SyncEngineHandle;
Defined in: types.ts:542
theme?
optional theme?: string | RasdTheme;
Defined in: types.ts:550
Theme document or a built-in id from @rasd/themes; default rasd-light.
tokens?
optional tokens?: "sheet" | "inline" | "none";
Defined in: types.ts:601
unstyled?
optional unstyled?: boolean;
Defined in: types.ts:559
Skip the default visual contract; semantics, classes and ARIA stay.
Methods
onError()?
optional onError(error): void;
Defined in: types.ts:607
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
void