@primereact/ui
v11.0.0
Published
A UI component library for React.
Keywords
Readme
PrimeReact UI
Styled React components for 70+ UI elements. Combines @primereact/headless behavior with @primereact/styles to produce ready-to-use components that work out of the box with any PrimeUIX theme preset.
What's inside
Each component is a thin bridge: the headless hook provides behavior and accessibility, the style module provides class names, and @primereact/core's Component wrapper ties them together. The result is a fully functional styled component with no extra boilerplate required from the consumer.
import { Button } from '@primereact/ui/button';
import { DataTable } from '@primereact/ui/datatable';
import { Dialog } from '@primereact/ui/dialog';Every component supports Pass Through (PT) for fine-grained DOM customization:
<Button label="Save" pt={{ root: { className: 'my-custom-button' } }} />The full component list is also available as a single import from @primereact/ui for convenience. Components are tree-shakable — importing from the subpath (@primereact/ui/button) includes only that component.
License
Licensed under the PrimeUI License - Copyright (c) PrimeTek Informatics
