react-ui-blocks
v1.0.6
Published
A lightweight and customizable React UI component library for building reusable interfaces.
Maintainers
Readme
React UI Blocks
react-ui-blocks is a lightweight and customizable React component library for building reusable, scalable user interfaces.
Why react-ui-blocks?
- Reusable UI primitives for faster development
- TypeScript-friendly component APIs
- Storybook-ready local development workflow
- Supports responsive table column sizing (for example,
DataTablemaxWidth)
Installation
npm install react-ui-blocksor
yarn add react-ui-blocksExports
Components
- Badge
- Button
- Card
- CheckBox
- DataTable
- Drawer
- EllipsisLoader
- Image
- Input
- Layout
- Modal
- Popover
- Scrollbar
- Select
- SortBy
- Tabs
Hooks
- useGetDevice
- useGetPosition
Quick Start
import { Button, DataTable } from "react-ui-blocks";
const columns = [
{ key: "id", label: "ID" },
{
key: "name",
label: "Name",
maxWidth: { mobile: 120, tablet: 160, desktop: 220 },
},
{ key: "age", label: "Age" },
];
const data = [
{ id: 1, name: "Alice", age: 28 },
{ id: 2, name: "Bob", age: 34 },
];
export default function App() {
return (
<>
<Button value="Click me" />
<DataTable data={data} columns={columns} isPagination isSorting />
</>
);
}Development
Install dependencies:
npm installRun Storybook:
npm run storybookBuild package:
npm run buildBuild static Storybook:
npm run build-storybookLicense
MIT License © 2026 Mohanraj K
Support
If this project helps you, consider giving it a ⭐ on GitHub.
