components

star 51

Vue component structure, PrimeVue, and script setup conventions

caido-community By caido-community schedule Updated 3/19/2026

name: components description: Vue component structure, PrimeVue, and script setup conventions

Components

  1. Use Primevue components for all UI components.
  2. Use <script setup lang="ts"> for all components.

Structure

Use the following layout for every component to keep imports and growth consistent:

ComponentName/
  ├─ index.ts           # Re-export (single public entry)
  ├─ Container.vue      # Main component implementation
  ├─ useForm.ts         # Optional: composable when logic grows (e.g. forms)
  └─ DependentComponent.vue

ComponentName/index.ts

export { default as ComponentName } from "./Container.vue";

When a child piece becomes complex or needs its own hook, use the same pattern as the parent:

ComponentName/
  └─ DependentComponent/
       ├─ index.ts
       └─ Container.vue
Install via CLI
npx skills add https://github.com/caido-community/shift --skill components
Repository Details
star Stars 51
call_split Forks 10
navigation Branch main
article Path SKILL.md
More from Creator
caido-community
caido-community Explore all skills →