百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

patternfly-elements

> 前端框架
开源

PatternFly 元素。一组基于 PatternFly 设计的社区创建的 Web 组件。

393 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

PatternFly 元素。一组基于 PatternFly 设计的社区创建的 Web 组件。

PatternFly Elements


\

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 generator is included for creating web components that meet these goals.

Quick start

bash
git clone [email protected]:patternfly/patternfly-elements.git
cd patternfly-elements
npm ci # install dependencies.
npm run start

Additional dependencies

nvm

Building PatternFly Elements requires specific versions of Node.js. To automate usage of the correct version, it is recommended that contributors install nvm as well an automatic version switcher like avn or shell-specific nvm integration. With those installed, your terminal will automatically switch to the correct Node.js version when you cd into the PatternFly Elements repository.

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

bash
# Build all components
npm run build

Preview

Runs development server.

bash
npm start

Testing

✨ Test using (Web Test Runner)

bash
# Run default test group in watch mode.
npm run test:watch

# Run a single test in watch mode.
npm run test:watch -- --files elements/pf-v5-accordion/test/pf-v5-accordion.spec.ts

# Or multiple:
npm run test:watch -- --files 'elements/pf-v5-{select,card}/test/*.spec.ts'

# Run all tests excluding react and vue tests.
npm run test:watch

# Run all tests with and without React and Vue wrappers.
# This is run on pull request within CI.
npm run test:ci

Development and Documentation servers

bash
# Development and documentation servers load simultaneously on localhost:port `:8000` and `:8080` respectively.
npm run start

LGTM Tradition

On this team, PR approvals come with a creative twist — reviewers leave a backronym for LGTM (four words starting with L, G, T, M). See lgtms.md for the full collection.

Top 10 Leaderboard

Author Count
@kylebuch8 193
@mwcz 85
@starryeyez024 61
@zeroedin 23
@Djfaucette 18
@markcaron 15
@nikkimk 14
@bennypowers 13
@adamjohnson 12
@brianferry 9

Hall of Fame

  • "Lilliputians: Gulliver's Tiny Mates" — @kylebuch8
  • "Lonely Graves Time Misrecollects" — @zeroedin
  • "Lemongrass Ginger Tofu Marinade" — @zeroedin
  • "Lousy Guitarist, Terrific Mandolinist" — @mwcz
  • "Loki Grabs Thor's Mjolnir" — @markcaron

Support

Though we have tested and verified general usability within these frameworks, PatternFly Elements makes no guarantees about compatibility within specific sites and applications. Please test accordingly.

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 | catalog | web components

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdesign-systemhacktoberfesthtmlwebcomponents

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架