r/reactjs • • 29d ago

Resource I rebuilt my open-source React kit into Dashral: 78 accessible components, 26 with motion, 34 free blocks and a Next.js admin dashboard (MIT)

Update, Nov 8: Dashral Pro is now available. It's complete dashboards and apps (Analytics, CRM, E-commerce, Kanban, Calendar, Chat) on Postgres, with auth, roles and uploads already wired, for a one-time payment. Everything in this post stays free and MIT licensed.


Update, Nov 7: Dashral is now at 1.1.1. What's new since this post:

  • 104 components (up from 78), including Color Picker, Phone Input, Code Block, JSON Viewer, Page Header, Action Bar, Editable Text, Rating and Lightbox
  • On npm: npm install @dashral/ui (and @dashral/motion), one file per component. The shadcn registry is still there if you'd rather have the source in your project
  • One command to start: npx create-dashral my-app gives you the dashboard as a plain Next.js project
  • The free dashboard now has Finance, Projects, Support, Inventory and Monitoring pages, in all three languages
  • Blank starter repos on GitHub: dashral-starter-classic and dashral-starter-inset

Some of you saw Multidash here in October. It's the same project, renamed to Dashral, and a lot further along. Thanks for the feedback last time: the components now install through a shadcn registry instead of living only in the repo, and you can preview everything before deciding anything.

What's free (MIT):

  • 78 components on Tailwind CSS v4, the interactive ones on Radix UI, props-first: one tag with label, description and error wired up for screen readers
  • 26 Motion editions on motion/react with the same props: numbers that roll on odometer wheels, one highlight that glides between items, a Switch you can drag, a Button you hold to confirm, limits you can feel. All of it respects reduced motion
  • 34 blocks (headers, sidebars, pricing, sign-in, an AI assistant…) that take your data and actions through props
  • A Next.js admin dashboard in two layouts, with a theme customizer, ⌘K search and English, Indonesian and Arabic (RTL)
  • Charts in plain SVG (area, line, bar, donut, heatmap…) with keyboard reading and a table for screen readers

Install one component:

npx shadcn@latest add https://dashral.com/r/button.json

It lands in components/dashral/, next to your shadcn components/ui/, which it never touches. The code is yours to change.

What's paid: Dashral Pro, coming soon, adds dashboards and apps on a real database (analytics, CRM, e-commerce, kanban, chat) for a one-time payment. The components stay free.

I'd love feedback on the component APIs and the motion: what feels right, what feels like too much, and what you'd want next.

0 Upvotes

6 comments sorted by

2

u/CommentFast5362 29d ago

i'd rather have motion as a prop to avoid splitting imports across fifty files for a UI kit

1

u/hasraltech 28d ago

Thanks, that's exactly the kind of answer I was hoping for.

The reason they're separate right now: the plain components don't depend on motion/react at all, so if you never use a Motion edition you never install or ship it. A `motion` prop would mean every Button carries the animation code (or a lazy load) even when it's off.

But I get the pain: swapping imports across fifty files is annoying. Since the code lands in your repo, one workaround today is a single barrel file that re-exports whichever edition you want, so your app imports from one place and you flip it there.

Would a prop still be your pick if it meant motion/react became a dependency of the whole kit? Genuinely asking, it's not decided.

2

u/Yourmamauw 29d ago

Looks nice!

1

u/hasraltech 28d ago

Thanks! Anything you'd want added?

1

u/hasraltech 29d ago

A few things I'd especially like opinions on:

  1. The Motion editions are separate files with the same props as the plain components, so you can swap one import. Would you rather have motion as a prop on the plain component?
  2. Every form control takes `label`, `description` and `error` in one tag instead of composing parts. Does that fit how you build forms, or do you prefer composition?
  3. Which component or block is missing for what you're building?