Skip to content

wesruv/patternfly-elements

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,379 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatternFly Elements Build Status

Table of Contents

  1. Getting started
  2. Element catalog
  3. Creating components
  4. Theming components

PatternFly Elements is a work-in-progress collection of flexible and lightweight Web Components based on the Unified Design Kit. The repo also includes a generator to build new components. PatternFly Elements are:

  • Lightweight: small file size, minimal boilerplate, no "framework-like" features.
  • Universal: write once, use everywhere. PatternFly Elements work in React, Vue, Angular, vanilla JS, anywhere HTML elements are used.
  • Themable: Make overrides as needed via attributes or CSS variables

The result of these principles is that you can plug one set of components into a wide variety of applications; bringing UX consistency and developer familiarity to any web project.

A Yeoman generator is included for creating web components that meet these goals.

Quick start

```
git clone git@github.com:patternfly/patternfly-elements.git
cd patternfly-elements
npm install # this will take a while due to lerna bootstrap
npm run storybook
```

The storybook script will launch the interactive demo pages.

Additional dependencies

If you will be doing any release work, it is recommended that you install Hugo and Hub.

To install on a MacOS: brew install hugo hub.

For other systems, please see documentation: - Hub - Hugo

Note: You will need to use Node v.7 or higher.

Command Line Helper Scripts

Many commands have an optional argument of space-separated component name(s), if left off it will assume it should run on all components. These should run from the project root.

Compile

# Run, watch, and build all components
npm run dev

# Run, watch, and build one or more component(s)
npm run dev [component-name(s)]

Preview

# Runs server process to preview files
npm start

# Runs storybook preview tool
npm run storybook

# Runs build and server (but doesn't watch)
npm run demo

Compile & Preview

# Runs build, watch, and server processes
npm run live-demo [component-name(s)]

Testing

# Run tests on all components
npm run test 

# Run tests on one component
npm run test [component-name(s)]

Support

Though we have tested and verified general usability within these frameworks, PFE makes no guarantees about compatibility within specific sites & applications. Please test accordingly. For more details, check out the official status card per component or visit the status page on the documentation site.

Stay informed

Sign up for the for the active project participation email list and/or the informed email list.

You can also participate in discussions on patternfly.slack.com in the #patternfly-elements channel.


home | start | develop | theming | storybook | web components

About

PatternFly Elements: A set of UI web components

Resources

License

Code of conduct

Contributing

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 60.8%
  • JavaScript 23.3%
  • CSS 15.4%
  • Shell 0.5%