A comprehensive collection of React components built with PrimeReact, designed for modern web applications.
npm install @dodjidev/reactcomponentsA comprehensive collection of React components built with PrimeReact, designed for modern web applications.
``bash`
npm install @omniyat/reactcomponents
This package requires the following peer dependencies:
`bash`
npm install react@^18.3.1 react-dom@^18.3.1
`jsx
import { ButtonComponent } from '@omniyat/reactcomponents';
onClick={handleClick}
onReject={handleReject}
full={true}
>
Click Me
`
Props:
- confirmMessage - Show confirmation dialog before actiononClick
- - Click handler functiononReject
- - Rejection handler for confirmationfull
- - Full width button (boolean)
`jsx
import { ConfirmBoxComponent } from '@omniyat/reactcomponents';
`
`jsx
import { DataTableComponent } from '@omniyat/reactcomponents';
data={users}
columns={columns}
onNew={handleNew}
rowActions={actions}
exportFields={exportFields}
allowedGroupFields={['status', 'department']}
/>
`
Key Features:
- Advanced filtering and search
- Column visibility controls
- Export to Excel/PDF
- Row grouping
- Context menus
- Row selection
- Pagination
- Sorting
- Responsive design
Props:
- tableId - Unique identifier for table configurationdata
- - Array of data objectscolumns
- - Column configuration arrayonNew
- - Handler for new record creationrowActions
- - Array of row action objectsexportFields
- - Fields available for exportallowedGroupFields
- - Fields that can be used for grouping
`jsx
import { DialogComponent } from '@omniyat/reactcomponents';
`
`jsx
import { FileUploaderComponent } from '@omniyat/reactcomponents';
`
`jsx
import { FormComponent } from '@omniyat/reactcomponents';
`
`jsx
import { OverlayComponent } from '@omniyat/reactcomponents';
`
`jsx
import { PiChartComponent } from '@omniyat/reactcomponents';
`
`jsx
import { TreeComponent } from '@omniyat/reactcomponents';
`
`bash`
npm run build
`bash`
npm run test
`bash``
npm run publish
This package is built on top of:
- PrimeReact - UI component library
- React Minimal Pie Chart - Chart visualization
- @omniyat/buttoncomponent - Base button component
The DataTableComponent supports persistent configuration through localStorage, including:
- Column visibility settings
- Export preferences
- Filter states
- Row grouping options
This package supports all modern browsers that support React 18+.
Private package - All rights reserved.
This is a private package. Please contact the maintainers for contribution guidelines.