11.0.0 • Published 4d ago
primereact
Licence
SEE LICENSE IN LICENSE.md
Version
11.0.0
Deps
2
Size
1.3 MB
Vulns
0
Weekly
0
PrimeReact
UI component library for React with 90+ components, four theme presets, and full TypeScript support. Visit primereact.dev for documentation, interactive demos, and the theme designer.
Installation
npm install primereact
Setup
import { PrimeReactProvider } from 'primereact/core';
import Aura from '@primeuix/themes/aura';
export default function App({ children }) {
return <PrimeReactProvider value={{ theme: { preset: Aura } }}>{children}</PrimeReactProvider>;
}
Usage
import { Button } from 'primereact/button';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
<Button label="Save" severity="success" />
<DataTable value={products}>
<Column field="name" header="Name" sortable />
<Column field="price" header="Price" />
</DataTable>
License
Licensed under the PrimeUI License - Copyright (c) PrimeTek Informatics