一键导入
onyx-components
Best practices and dynamic API lookup instructions for Onyx UI components. Use when implementing UI features, forms, or building Vue templates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices and dynamic API lookup instructions for Onyx UI components. Use when implementing UI features, forms, or building Vue templates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Installation and setup instructions for the local onyx MCP server
Styling foundations, CSS variables, layout grid, breakpoints, and responsive mixins for Onyx. Use when writing custom CSS, designing layouts, or ensuring theme compliance.
One-time configuration, initialization, CSS/font imports, i18n, and layout scaffolding for the Onyx design system. Use when setting up a new project or integrating Vue Router.
| name | onyx-components |
| description | Best practices and dynamic API lookup instructions for Onyx UI components. Use when implementing UI features, forms, or building Vue templates. |
| license | Apache-2.0 |
Implement and configure Onyx Vue 3 UI components using authoritative API definitions.
Onyx component APIs are dynamic and change across versions. NEVER guess or assume props, events, or slots.
OnyxButton, OnyxIconButton, OnyxSystemButton, OnyxMenuItem, and OnyxNavItem support a link prop. Do not wrap these components in raw <a> tags; pass the URL to the link prop.useLink composable (const { navigate, isActive } = useLink()) or OnyxRouterLink for custom unstyled navigation components.Message and LabelPositions properties consistently.Skeleton loading states when loading form data.date-picker, radio-group, checkbox-group).Accordion, Cards, Badge, Tag) inside the Onyx grid layout (see onyx-foundation) to prevent layout breaking.After writing or updating components, you MUST run the following verification steps:
npx vue-tsc --noEmit or npm run type-check) to confirm no invalid props or event bindings exist.npm run lint or eslint .) to confirm code style and rules are respected.