Skip to content

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.

PropTypeRequiredDescription
scriptsFontScript[]Explicit list of scripts to load. Takes precedence over language. @example scripts=latindevanagaritamil
languagestringBCP 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.
preconnectbooleanIf true, also injects a preconnect to fonts.googleapis.com and fonts.gstatic.com to start the TLS handshake earlier. Default: true.
childrenReactNode
  • Keyboard navigation supported on all interactive elements
  • :focus-visible outline at 2px (theme-token primary)
  • ARIA roles and properties applied per WAI-ARIA 1.2
  • Respects prefers-reduced-motion
  • Minimum 44×44 touch target where applicable

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.