You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(theme): add custom font configuration support to RNCProvider
- Add fontConfig, fontsLoaded, and onFontLoadError props to RNCProvider
- Include documentation and examples for custom font setup
- Update CHANGELOG.md with new features and fixes
- Add badge to setup guide for new font configuration section
Copy file name to clipboardExpand all lines: apps/docs/src/content/docs/api/provider.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ Provider component is used to wrap your app content and provide the theme contex
22
22
|`loadingComponent?`|`ReactNode`|`undefined`| Custom loading component to display during theme initialization |
23
23
|`splashDuration?`|`number`|`150`| Minimum splash duration in milliseconds to prevent flash |
24
24
|`fallbackTheme?`|`'light' \| 'dark'`|`'light'`| Fallback theme to use when system theme is unavailable |
25
+
|`fontConfig?`| <ahref='/api/provider#fontconfig'>`FontConfig`</a> |`undefined`| Custom font configuration for typography |
26
+
|`fontsLoaded?`|`boolean`|`true`| External font loading state indicator |
27
+
|`onFontLoadError?`|`(error: string) => void`|`undefined`| Callback function when font loading fails |
25
28
26
29
### BottomSheetProps
27
30
@@ -62,6 +65,15 @@ Provider component is used to wrap your app content and provide the theme contex
62
65
|`defaultLocale`|`string`| No |`undefined`| The default locale code to use when no specific locale is selected or when the requested locale is not supported. Should be one of the locales listed in `supportedLocales`. |
63
66
|`autoDetectLocale`|`boolean`| No |`undefined`| Whether to automatically detect the user's preferred locale from browser settings or other sources. When `true`, the application will attempt to match the user's preference with supported locales. |
0 commit comments