TkxFontProvider
import { TkxFontProvider } from 'tekivex-ui';FontProvider is part of the tekivex-ui library. Every component is self-tested against WCAG 2.1 AAA criteria, fully typed, and tree-shakeable. A third-party AAA audit is on the roadmap, not completed.
| Prop | Type | Required | Description |
|---|---|---|---|
scripts | FontScript[] | Explicit list of scripts to load. Takes precedence over language. @example scripts=latindevanagaritamil | |
language | string | BCP 47 language code (e.g. “en”, “hi”, “ta”, “zh-CN”). Resolved to its required scripts via the built-in language map. If both scripts and language are passed, scripts wins. | |
preconnect | boolean | If true, also injects a preconnect to fonts.googleapis.com and fonts.gstatic.com to start the TLS handshake earlier. Default: true. | |
children | ReactNode |
Accessibility
Section titled “Accessibility”- Keyboard navigation supported on all interactive elements
:focus-visibleoutline at 2px (theme-tokenprimary)- ARIA roles and properties applied per WAI-ARIA 1.2
- Respects
prefers-reduced-motion - Minimum 44×44 touch target where applicable
Source
Section titled “Source”The implementation lives at src/components/TkxFontProvider.tsx.
This page is a generated scaffold. It will be replaced with hand-authored examples and a live preview in a follow-up release. For interactive demos, see the legacy demo site.