Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证The foundation for beautiful user interfaces.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗The foundation for beautiful user interfaces.
Peacock gives you the tools and foundation to build beautiful, usable product interfaces. It’s the system you use to craft your own component library.
Peacock is more than just a collection of components; it is an aesthetic philosophy. Like its avian namesake, it provides the core elements (the primitives) that allow the full, vibrant display (the design) to be unveiled.
Opinionated Beauty: We deliver pre-styled, beautiful components that follow modern design trends, significantly reducing the boilerplate needed to achieve a professional look.
Foundation First: Similar to projects like shadcn/ui, Peacock focuses on providing the foundational primitives, ensuring maximum flexibility for customization without sacrificing initial polish.
Seamless Integration: Designed with modern web frameworks in mind (e.g., React, Vue), integrating Peacock into your existing project structure is fast, efficient, and empowering.
Vibrant & Consistent Design System: Every component—from buttons and cards to complex data tables—shares a cohesive, high-quality visual language.
Highly Extensible: The component structure is designed for easy overwriting and theme customization, allowing you to quickly adapt the style to your specific brand identity.
Built for Accessibility: Focus on semantic HTML and proper ARIA attributes to ensure that your beautiful interfaces are accessible to all users.
Responsive by Default: Components are built with responsiveness baked in, guaranteeing a graceful display across all screen sizes and devices.
Visit https://peacock.redvars.com to view the documentation.
<head>
<!-- Default font : Noto Sans and Noto Sans Mono -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:[email protected]&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@redvars/[email protected]/dist/assets/styles.css"></link>
<script type='module'
src='https://cdn.jsdelivr.net/npm/@redvars/[email protected]/dist/loader.js'></script>
</head>
<wc-button>Button</wc-button>
loader.js fetches icons from cdn.jsdelivr.net. For a page that must stay on its own origin, such as an intranet or a page whose content security policy allows only connect-src 'self', serve the package's dist/ folder yourself and load loader-full.js instead. It loads the same components, and fetches Material Symbols from the copy it ships in dist/icons/material-symbols/:
<script type='module' src='/assets/peacock/dist/loader-full.js'></script>
To keep icons somewhere else, call setIconBase('material-symbols', '/my/icons/') before the first icon renders; the folder holds one <name>.svg per icon.
Input controls are UI design elements that allow users to input information into the system. They are essential for collecting data and enabling user interactions. Some common examples of input controls include text fields, dropdown menus, checkboxes, and radio buttons.
| Name | Component | State |
|---|---|---|
| Checkbox | wc-checkbox | 🟢 |
| Code editor | wc-code-editor | 🟢 |
| Color picker | wc-color-picker | 🟡 |
| Date picker | wc-date-picker | 🟡 |
| Date time picker | datetime-picker | 🔴 |
| Field / Form control | wc-field | 🟡 |
| File picker | file-picker | 🔴 |
| HTML editor | wc-html-editor | 🟡 |
| Input | wc-input | 🟢 |
| Input URL | input-url | 🔴 |
| Month picker | month-picker | 🔴 |
| Number field | wc-number-field | 🟢 |
| Radio | wc-radio | 🟢 |
| Search | wc-search | 🟡 |
| Select |
Navigational components are UI elements that help users move around the app or website. They provide users with a clear and intuitive way to navigate through different sections and pages. Some common examples of navigational components include menus, tabs, and breadcrumbs.
| Name | Component | State |
|---|---|---|
| Breadcrumb | wc-breadcrumb | 🟢 |
| Dropdown | wc-dropdown | 🔴 |
| Menu | wc-menu | 🟡 |
| Tabs | wc-tabs | 🟢 |
| Toolbar | wc-toolbar | 🟡 |
Informational components are UI elements that provide information to users. They communicate important messages, updates, or instructions within the app or website. Some common examples of informational components include notifications, tooltips, and progress bars.
| Name | Component | State |
|---|---|---|
| Badge | wc-badge | 🟢 |
| Alert | wc-alert | 🟡 |
| Circular Progress | wc-circular-progress | 🟢 |
| Linear Progress | wc-linear-progress | 🟢 |
| Notification | wc-notification | 🟢 |
| Skeleton | wc-skeleton | 🟢 |
| Snackbar | wc-snackbar | 🟡 |
| Spinner | wc-spinner | 🟢 |
| Tooltip | wc-tooltip | 🟢 |
Containers are UI elements that group similar content together, making it easier for users to navigate and scan through the interface. Examples of common containers include cards, carousels, and accordions, which provide structure and organization to the content.
| Name | Component | State |
|---|---|---|
| Accordion | wc-accordion | 🟢 |
| Bottom Sheet | wc-bottom-sheet | 🟡 |
| Card | wc-card | 🟢 |
| Container | wc-container | 🟡 |
| Side Sheet | wc-side-sheet | 🟡 |
These components are used for general purpose. They include
| Name | Component | State |
|---|---|---|
| Avatar | wc-avatar | 🟢 |
| Button | wc-button | 🟢 |
| Button Group | wc-button-group | 🟢 |
| Calendar | calendar | 🔴 |
| Card Select | card-select | 🔴 |
| Chip | wc-chip | 🟢 |
| Clock | wc-clock | 🟡 |
| Code Highlighter | wc-code-highlighter | 🟢 |
| Divider | wc-divider | 🟢 |
| Empty State | wc-empty-state | 🟡 |
| FAB | wc-fab | 🟢 |
| Flow Designer | flow-designer | 🔵 |
| Header | header | 🔴 |
| Icon | wc-icon | 🟢 |
These components are used to display data in a graphical format. They include
| Name | Component | State |
|---|---|---|
| Bar Chart | wc-chart-bar | 🟢 |
| Doughnut Chart | wc-chart-doughnut | 🟢 |
| Pie Chart | wc-chart-pie | 🟢 |
| Stacked Bar Chart | wc-chart-stacked-bar | 🟢 |
Peacock is open-source software licensed under the Apache-2.0 License.
Made with 💖 by Redvars.
| wc-select |
| 🟢 |
| Textarea | wc-textarea | 🟢 |
| Time picker | wc-time-picker | 🟡 |
| Week picker | week-picker | 🔴 |
| Icon Button | wc-icon-button | 🟢 |
| Image | wc-image | 🟡 |
| Link | wc-link | 🟢 |
| Modal | modal | 🔴 |
| Number Counter | wc-number-counter | 🟡 |
| Pagination | wc-pagination | 🟡 |
| Segmented Button | wc-segmented-button | 🟡 |
| Slider | wc-slider | 🟡 |
| Switch | wc-switch | 🟢 |
| Table | wc-table | 🟡 |
| Tag | wc-tag | 🟢 |
| Text | text | 🔴 |
| Sidebar Menu | wc-sidebar-menu | 🟡 |