katoikia-app/web-ui/web-react/node_modules/primereact
Maria Sanchez 5abf040b42 fix web ui template 2022-07-05 22:15:11 -06:00
..
accordion fix web ui template 2022-07-05 22:15:11 -06:00
api fix web ui template 2022-07-05 22:15:11 -06:00
autocomplete fix web ui template 2022-07-05 22:15:11 -06:00
avatar fix web ui template 2022-07-05 22:15:11 -06:00
avatargroup fix web ui template 2022-07-05 22:15:11 -06:00
badge fix web ui template 2022-07-05 22:15:11 -06:00
blockui fix web ui template 2022-07-05 22:15:11 -06:00
breadcrumb fix web ui template 2022-07-05 22:15:11 -06:00
button fix web ui template 2022-07-05 22:15:11 -06:00
calendar fix web ui template 2022-07-05 22:15:11 -06:00
captcha fix web ui template 2022-07-05 22:15:11 -06:00
card fix web ui template 2022-07-05 22:15:11 -06:00
carousel fix web ui template 2022-07-05 22:15:11 -06:00
cascadeselect fix web ui template 2022-07-05 22:15:11 -06:00
chart fix web ui template 2022-07-05 22:15:11 -06:00
checkbox fix web ui template 2022-07-05 22:15:11 -06:00
chip fix web ui template 2022-07-05 22:15:11 -06:00
chips fix web ui template 2022-07-05 22:15:11 -06:00
colorpicker fix web ui template 2022-07-05 22:15:11 -06:00
column fix web ui template 2022-07-05 22:15:11 -06:00
columngroup fix web ui template 2022-07-05 22:15:11 -06:00
common fix web ui template 2022-07-05 22:15:11 -06:00
confirmdialog fix web ui template 2022-07-05 22:15:11 -06:00
confirmpopup fix web ui template 2022-07-05 22:15:11 -06:00
contextmenu fix web ui template 2022-07-05 22:15:11 -06:00
core fix web ui template 2022-07-05 22:15:11 -06:00
csstransition fix web ui template 2022-07-05 22:15:11 -06:00
datascroller fix web ui template 2022-07-05 22:15:11 -06:00
datatable fix web ui template 2022-07-05 22:15:11 -06:00
dataview fix web ui template 2022-07-05 22:15:11 -06:00
deferredcontent fix web ui template 2022-07-05 22:15:11 -06:00
dialog fix web ui template 2022-07-05 22:15:11 -06:00
divider fix web ui template 2022-07-05 22:15:11 -06:00
dock fix web ui template 2022-07-05 22:15:11 -06:00
dropdown fix web ui template 2022-07-05 22:15:11 -06:00
editor fix web ui template 2022-07-05 22:15:11 -06:00
fieldset fix web ui template 2022-07-05 22:15:11 -06:00
fileupload fix web ui template 2022-07-05 22:15:11 -06:00
fullcalendar fix web ui template 2022-07-05 22:15:11 -06:00
galleria fix web ui template 2022-07-05 22:15:11 -06:00
gmap fix web ui template 2022-07-05 22:15:11 -06:00
image fix web ui template 2022-07-05 22:15:11 -06:00
inplace fix web ui template 2022-07-05 22:15:11 -06:00
inputmask fix web ui template 2022-07-05 22:15:11 -06:00
inputnumber fix web ui template 2022-07-05 22:15:11 -06:00
inputswitch fix web ui template 2022-07-05 22:15:11 -06:00
inputtext fix web ui template 2022-07-05 22:15:11 -06:00
inputtextarea fix web ui template 2022-07-05 22:15:11 -06:00
keyfilter fix web ui template 2022-07-05 22:15:11 -06:00
knob fix web ui template 2022-07-05 22:15:11 -06:00
listbox fix web ui template 2022-07-05 22:15:11 -06:00
megamenu fix web ui template 2022-07-05 22:15:11 -06:00
mention fix web ui template 2022-07-05 22:15:11 -06:00
menu fix web ui template 2022-07-05 22:15:11 -06:00
menubar fix web ui template 2022-07-05 22:15:11 -06:00
menuitem fix web ui template 2022-07-05 22:15:11 -06:00
message fix web ui template 2022-07-05 22:15:11 -06:00
messages fix web ui template 2022-07-05 22:15:11 -06:00
multiselect fix web ui template 2022-07-05 22:15:11 -06:00
multistatecheckbox fix web ui template 2022-07-05 22:15:11 -06:00
orderlist fix web ui template 2022-07-05 22:15:11 -06:00
organizationchart fix web ui template 2022-07-05 22:15:11 -06:00
overlaypanel fix web ui template 2022-07-05 22:15:11 -06:00
overlayservice fix web ui template 2022-07-05 22:15:11 -06:00
paginator fix web ui template 2022-07-05 22:15:11 -06:00
panel fix web ui template 2022-07-05 22:15:11 -06:00
panelmenu fix web ui template 2022-07-05 22:15:11 -06:00
password fix web ui template 2022-07-05 22:15:11 -06:00
picklist fix web ui template 2022-07-05 22:15:11 -06:00
portal fix web ui template 2022-07-05 22:15:11 -06:00
progressbar fix web ui template 2022-07-05 22:15:11 -06:00
progressspinner fix web ui template 2022-07-05 22:15:11 -06:00
radiobutton fix web ui template 2022-07-05 22:15:11 -06:00
rating fix web ui template 2022-07-05 22:15:11 -06:00
resources fix web ui template 2022-07-05 22:15:11 -06:00
ripple fix web ui template 2022-07-05 22:15:11 -06:00
row fix web ui template 2022-07-05 22:15:11 -06:00
scrollpanel fix web ui template 2022-07-05 22:15:11 -06:00
scrolltop fix web ui template 2022-07-05 22:15:11 -06:00
selectbutton fix web ui template 2022-07-05 22:15:11 -06:00
selectitem fix web ui template 2022-07-05 22:15:11 -06:00
sidebar fix web ui template 2022-07-05 22:15:11 -06:00
skeleton fix web ui template 2022-07-05 22:15:11 -06:00
slidemenu fix web ui template 2022-07-05 22:15:11 -06:00
slider fix web ui template 2022-07-05 22:15:11 -06:00
speeddial fix web ui template 2022-07-05 22:15:11 -06:00
splitbutton fix web ui template 2022-07-05 22:15:11 -06:00
splitter fix web ui template 2022-07-05 22:15:11 -06:00
steps fix web ui template 2022-07-05 22:15:11 -06:00
styleclass fix web ui template 2022-07-05 22:15:11 -06:00
tabmenu fix web ui template 2022-07-05 22:15:11 -06:00
tabview fix web ui template 2022-07-05 22:15:11 -06:00
tag fix web ui template 2022-07-05 22:15:11 -06:00
terminal fix web ui template 2022-07-05 22:15:11 -06:00
terminalservice fix web ui template 2022-07-05 22:15:11 -06:00
tieredmenu fix web ui template 2022-07-05 22:15:11 -06:00
timeline fix web ui template 2022-07-05 22:15:11 -06:00
toast fix web ui template 2022-07-05 22:15:11 -06:00
togglebutton fix web ui template 2022-07-05 22:15:11 -06:00
toolbar fix web ui template 2022-07-05 22:15:11 -06:00
tooltip fix web ui template 2022-07-05 22:15:11 -06:00
tree fix web ui template 2022-07-05 22:15:11 -06:00
treenode fix web ui template 2022-07-05 22:15:11 -06:00
treeselect fix web ui template 2022-07-05 22:15:11 -06:00
treetable fix web ui template 2022-07-05 22:15:11 -06:00
tristatecheckbox fix web ui template 2022-07-05 22:15:11 -06:00
utils fix web ui template 2022-07-05 22:15:11 -06:00
virtualscroller fix web ui template 2022-07-05 22:15:11 -06:00
LICENSE.md fix web ui template 2022-07-05 22:15:11 -06:00
README.md fix web ui template 2022-07-05 22:15:11 -06:00
package.json fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.cjs.js fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.cjs.min.js fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.esm.js fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.esm.min.js fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.js fix web ui template 2022-07-05 22:15:11 -06:00
primereact.all.min.js fix web ui template 2022-07-05 22:15:11 -06:00
web-types.json fix web ui template 2022-07-05 22:15:11 -06:00

README.md

License: MIT npm version Discord Chat

PrimeReact Hero

PrimeReact

PrimeReact is a rich set of open source UI Components for React. See PrimeReact homepage for live showcase and documentation.

Download

PrimeReact is available at npm, if you have an existing application run the following command to download it to your project.

npm install primereact
npm install primeicons

or

yarn add primereact
yarn add primeicons

Import

Module

//import { ComponentName } from 'primereact/{componentname}';
import { Dialog } from 'primereact/dialog';
import { Accordion, AccordionTab } from 'primereact/accordion';

CDN

<script src="https://unpkg.com/primereact/core/core.min.js"></script>
<script src="https://unpkg.com/primereact/accordion/accordion.min.js"></script>
//<script src="https://unpkg.com/primereact/{componentname}/{componentname}.min.js"></script>
const { Dialog } = primereact.dialog;
const { Accordion, AccordionTab } = primereact.accordion;

Import all components and structures

<script src="https://unpkg.com/primereact/primereact.all.min.js"></script>

Dependencies

Majority of PrimeReact components (95%) are native and there are some exceptions having 3rd party dependencies such as Google Maps for GMap.

In addition, components require PrimeIcons for icons and react-transition-group for animations.

dependencies: {
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-transition-group": "^4.4.1",
    "primeicons": "^5.0.0"
}

Styles

The css dependencies are as follows, note that you may change the theme with another one of your choice.

primereact/resources/themes/lara-light-indigo/theme.css
primereact/resources/primereact.min.css
primeicons/primeicons.css

If you are using a bundler such as webpack with a css loader you may also import them to your main application component, an example from create-react-app would be.

import 'primereact/resources/themes/lara-light-indigo/theme.css';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';

QuickStart

An example application based on create-react-app is available at github.

TypeScript

Typescript is fully supported as type definition files are provided in the npm package of PrimeReact. A sample typescript-primereact application is available as well at github.