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 | 🟡 |