@percentsa/ui
v0.19.0
Published
Percent React components (Tailwind v4 + Radix), Saudi kit, bilingual helpers.
Maintainers
Readme
@percentsa/ui
React components of the Percent Design System (React 19, Tailwind CSS v4, Radix): forms, overlays, navigation, data display, charts, app layouts, invoices, and a Saudi and bilingual kit (Riyal sign, Hijri dates, IBAN, national ID, CR, VAT, phone, national address). Every component works in English and Arabic (RTL), dark and light, with the keyboard.
bun add @percentsa/tokens @percentsa/ui@import "tailwindcss";
@import "@percentsa/tokens/theme.css";
@import "@percentsa/ui/styles.css";import { Button, PercentProvider } from "@percentsa/ui";
<PercentProvider lang="ar" link={RouterLink}>
<Button>متابعة</Button>
</PercentProvider>Forms with react-hook-form: FormField binds a field to Field (label, hint, error message, ids). It has its own entry, import { FormField } from "@percentsa/ui/react-hook-form", and needs react-hook-form 7.55 or later (bun add react-hook-form). @percentsa/ui itself does not import it.
The Percent logo is the default. Set your own with PercentProvider brand={{ mark, wordmark }}: the Percent name and logos are not covered by the MIT license (see TRADEMARKS.md in the repository).
Docs and examples: https://design.percent.sa · Source: https://github.com/PercentSA/design · License: MIT
