vue-components

Scaffold Vue 3 components with TypeScript, Tailwind, and accessibility defaults.

15.9k|914|Updated Aug 16, 2023
One-click install
npx skills add https://github.com/scalar/scalar --skill vue-components-scalar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-components
Source: https://github.com/scalar/scalar/tree/main/.agents/skills/vue-components
Command: npx skills add https://github.com/scalar/scalar --skill vue-components-scalar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building Vue 3 UI components with TypeScript and Tailwind often leads to inconsistent patterns, duplicated boilerplate, and accessibility gaps. This Skill provides a clear, reusable scaffold that enforces a clean structure, strong typings, and accessible defaults.

Core Features & Use Cases

  • Component scaffolding with a consistent file structure (components/, composables/, types/).
  • Strong TypeScript typings for props, emits, and events to catch errors at compile time.
  • Tailwind-driven styling with accessible, responsive defaults and guidance for dark mode.
  • Guidelines for testability, documentation, and component library usage to ensure consistency.
  • Use Case: teams building reusable UI libraries or design systems for multiple Vue apps.

Quick Start

Create a new Vue 3 component following the recommended project structure and styling conventions, then integrate it into a sample page to validate TypeScript typings and Tailwind classes.

Frequently Asked Questions about vue-components

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

FAQPage Schema
How do I scaffold a Vue 3 component with TypeScript and Tailwind?

To scaffold a Vue 3 component, you generate a consistent file structure with components, composables, and types directories. This enforces strong TypeScript typings, Tailwind styling, and accessible defaults across reusable UI libraries.

What is the best way to structure a Vue 3 component library for accessibility?

Structuring a Vue 3 component library for accessibility requires a standardized scaffold with dedicated composables for logic and strong TypeScript typings. This enforces accessible, responsive Tailwind defaults and ensures testable components across multiple apps.

Does this Vue 3 component approach support dark mode with Tailwind?

Yes, this Vue 3 component approach supports dark mode with Tailwind by providing built-in guidance for dark mode styling. It ensures responsive Tailwind defaults while maintaining strong TypeScript typings and accessible component structures.

How do I enforce consistent TypeScript typings for Vue 3 props and emits?

You enforce consistent TypeScript typings for Vue 3 props and emits by applying a reusable scaffold that standardizes component definitions. This catches errors at compile time and ensures consistent structure across your frontend apps.

Can I use this Vue 3 component scaffold for a design system?

Yes, you can use this Vue 3 component scaffold for a design system as it streamlines the creation of reusable UI components. It enforces consistent structure, TypeScript typings, and Tailwind styling across multiple Vue applications.

Why do my Vue 3 Tailwind components have inconsistent patterns and boilerplate?

Your Vue 3 Tailwind components have inconsistent patterns because they lack a reusable scaffold enforcing clean structure and strong typings. Applying a standardized component scaffold eliminates duplicated boilerplate and resolves accessibility gaps.