Nasim

React UI for right-to-left dashboards

Nasim is a React UI library for dashboards: tables, forms, dialogs, charts and an app shell on HeroUI 3 and React Aria, styled with Tailwind v4. It is right to left, light and dark, and takes a product’s own colours as a palette. It is Persian-first: its own words and its locale are fa-IR, and other locales are not supported yet.

Version: unreleased, after 0.12.0. These pages follow the library’s source, which is ahead of the version on npm: what the changelog lists under Unreleased may not be in the published package yet. The changelog

Install

npm i @nyxon/nasim

Then set it up, step by step: Installation

Get started

  • Installation: Install @nyxon/nasim with its peers, pin React Aria to one copy, add the stylesheet and the font.
  • Setup: NasimProvider and its props, links through the app's router, Server and client components, Persian digits and the locale.
  • Rules: The six rules for a screen built on Nasim, and the reason for each.
  • For agents: What llms.txt and the Markdown version of each page hold, and how to point a coding agent at them.

Components › Actions

  • Button: HeroUI's button, re-exported through Nasim with its variants, sizes and pending state.
  • LinkButton: A link that looks like a button and moves inside the app through NasimProvider's router.

Components › Data display

Components › Feedback and states

  • StatusChip: A status as an icon and words on a soft tint, never colour alone.
  • Notice: An inline message with its icon, a title and the words, in one of five tones.
  • EmptyState: Nothing to show yet, said in words, with the next step as a button or a link.
  • ErrorState: A view that failed to load, what to do about it, a retry that can count down, and a tracking code.

Components › Overlays

  • Modal: A dialog for a form or a detail, centred on a desktop and a sheet along the bottom of a phone.
  • ConfirmDialog: An alert dialog before a destructive or money-moving action, with its impact, a reason and a typed phrase.
  • BottomSheet: A sheet from the bottom edge for choices and short forms, which drags down to close.
  • SidePanel: A row's detail and its edit form, a drawer from the inline-end edge on a desktop and a bottom sheet on a phone.

For agents

llms.txt — lists every page with its Markdown version, which holds the examples’ code and the props table as text.