Coder Social home page Coder Social logo

primefaces / primereact Goto Github PK

View Code? Open in Web Editor NEW
5.9K 75.0 942.0 236.79 MB

The Most Complete React UI Component Library

Home Page: https://primereact.org

License: MIT License

JavaScript 39.45% CSS 60.05% SCSS 0.50%
ui-components react-components charts tree primereact react treetable grid datatable material

primereact's Introduction

License: MIT npm version primereact Actions CI Discord Chat Stackoverflow Prime Discussions

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.

# Using npm
npm install primereact

# Using yarn
yarn add primereact

# Using pnpm
pnpm add primereact

Import

Each component can be imported individually so that you only bundle what you use. Import path is available in the documentation of the corresponding component.

//import { ComponentName } from 'primereact/{componentname}';
import { Button } from 'primereact/button';

export default function MyComponent() {
  return (
    <Button label="PrimeReact" />
  )
}

Theming

PrimeReact has two theming modes; styled or unstyled.

Styled Mode

Styled mode is based on pre-skinned components with opinionated themes like Material, Bootstrap or PrimeOne themes. Theme is the required css file to be imported, visit the Themes section for the complete list of available themes to choose from.

// theme
import 'primereact/resources/themes/lara-light-cyan/theme.css';

Unstyled Mode

Unstyled mode is disabled by default for all components. Using the PrimeReact context, set unstyled as true to enable it globally. Visit the Unstyled mode documentation for more information and examples.

Contributors

primereact's People

Contributors

akshayantony55 avatar akshayaqburst avatar atakantepe avatar cagataycivici avatar cetincakiroglu avatar charithamila avatar dependabot[bot] avatar didix16 avatar emirboyaci avatar gcko avatar gucal avatar habubey avatar inad9300 avatar kalinkrustev avatar kirilcycle avatar kl-nevermore avatar mcandu avatar melloware avatar mertsincan avatar merve7 avatar mrtcndkn avatar nathanpb avatar navedqb avatar nitrogenous avatar onursenture avatar rekl0w avatar tanerengiiin avatar tugcekucukoglu avatar ulasturann avatar yigitfindikli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

primereact's Issues

Chips need input focus

If we focus on the chips input box then it should get the focus like any other input component.This can be replicated on showcase as well.

Unit tests for components

Hi all,

Thank you for the good job. Just wondered if you have any plan to integrate unit tests for each component and so on?

Thanks

Baris

line.gif is missing

I've created a package for 1.0.0-alpha2 using "npm pack" command, and the primeng.min.css is missing line.gif. The original file is Tree.css.

submit type Button component not supported

The Button component unconditionally overwrites the type attibute to 'button' even if I want it to be 'submit'.

In contrast I can create an InputText with type attribute set to 'password'.

Dropdown is missing input focus

If you select or click dropdown inputbox then it should get focused like any other input component.This can be replicated in showcase too.

About defaultProps and propTypes

Hello,
According to me defaultProps and propTypes as static members are nicer than assigning outside of the class. Do you have a specific reason to go like that?

Tree Component

Defines the orientation of the tree, valid values are 'vertical' and 'horizontal'.

Wiki or README update for SASS conversion

Theme files need to be converted from SASS to CSS files.To work with build from source, there is a need of documentation for SASS install or node-sass steps to notify users .

activeIndex property on TabView doesn't work

Unable to create a TabView where the activeIndex is not the first, because the component uses the value from its state and ignores the value it receives in props.

We should use the componentWillReceiveProps lifecycle method to copy the value from component props to state.

MultiSelect Input focus is missing

If you select or click multiselect inputbox then it should get focused like any other input component.This can be replicated in showcase too.

Button focus is missing for click operation

The button components requires focus once there is a click action/operation.This issue is replicated for buttons with severity classes.This can be replicated on showcase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.