Skip to content
JS00001Public

About

A react UI backbone library, that contains components that are typically pesky for me to set up

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Sencorp React UI

@sencorp/react-ui

Commonly used React UI components, ready to customize with your own design system.

Install

Use React 18 or 19. Install the package and Motion 12:

npm install @sencorp/react-ui "motion@^12.23.0"

Choose a component

Follow the setup guide for each component you want to use:

Component Import path Setup guide
Table @sencorp/react-ui/table Table
Modal @sencorp/react-ui/modal Modal
Sidebar @sencorp/react-ui/sidebar Sidebar
Toast @sencorp/react-ui/toast Toast

For tables, import the stylesheet once and wrap your table in TableThemeProvider.

For modals, register your components with ModalProvider at the app root and create a typed useModal wrapper.

For sidebars, register your components with SidebarProvider at the app root and create a typed useSidebar wrapper.

For toasts, mount ToastProvider once and call toast.show() with your content from any component or function.

Try the demo

Use Node.js 22.12 or newer. In this repository, run:

npm install
npm run dev

Open the local URL printed in your terminal.

About

A react UI backbone library, that contains components that are typically pesky for me to set up

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages