web-component-design

Develop reusable cross-framework UI component patterns for React, Vue, and Svelte.

114|12|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/OpenDCAI/leonai --skill web-component-design-opendcai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-component-design
Source: https://github.com/OpenDCAI/leonai/tree/main/.claude/skills/web-component-design
Command: npx skills add https://github.com/OpenDCAI/leonai --skill web-component-design-opendcai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Designers and engineers often struggle to build reusable, framework-agnostic UI components and cohesive design systems that scale across React, Vue, and Svelte. This Skill provides patterns, examples, and guidelines to craft portable, composable components that can be shared across projects.

Core Features & Use Cases

  • Cross-framework component patterns: compound components, slots, and render-props across React, Vue, and Svelte.
  • API design & accessibility guidance to ensure consistent behavior and ARIA support.
  • Design-system-oriented patterns with CSS-in-JS, CSS modules, and TS typings.

Quick Start

Provide a cross-framework reusable component example, showing a Button implemented in React, Vue, and Svelte with accessible ARIA attributes.

Frequently Asked Questions about web-component-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build reusable UI components that work across React, Vue, and Svelte?

To build reusable UI components across React, Vue, and Svelte, apply cross-framework composition strategies like compound components, slots, and render-props. These patterns ensure your design system remains portable and composable across different frontend projects.

How do I design accessible slot-based APIs for a cross-framework design system?

Designing accessible slot-based APIs involves implementing consistent ARIA support and clear API surfaces across your shared UI kit. This Skill provides specific guidance on combining slot-based APIs with accessibility patterns to ensure uniform behavior in React, Vue, and Svelte.

What is the best way to implement polymorphic components in a shared UI kit?

The best way to implement polymorphic components in a shared UI kit is using framework-agnostic composition strategies. This approach provides clear guidance on API surfaces and theming, allowing components to dynamically render different elements while maintaining consistent behavior.

Can I use CSS modules and TypeScript typings with these cross-framework component patterns?

Yes, you can use CSS modules and TypeScript typings with these cross-framework component patterns. The design-system-oriented patterns include specific support for CSS-in-JS, CSS modules, and TS typings to streamline your theming and component API development.

When do I need cross-framework composition strategies for my design system?

You need cross-framework composition strategies when scaling a cohesive design system across multiple frontend projects. These patterns solve the problem of building portable, composable components by providing clear API surfaces, theming, and accessibility for React, Vue, and Svelte.

How do I apply cross-framework UI patterns to ensure consistent ARIA attributes?

To apply cross-framework UI patterns with consistent ARIA attributes, use the provided accessibility guidance and API design examples. These demonstrate how to build accessible components, like a Button, with proper ARIA attributes implemented uniformly in React, Vue, and Svelte.