🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

primevue

by @yuexiaoliang

PrimeVue UI component library for Vue.js with 100+ components. Covers design token theming, unstyled mode, pass-through (pt) styling, forms with validation,...

Versionv1.0.0
Downloads547
TERMINAL
clawhub install primevue

πŸ“– About This Skill


name: primevue description: "PrimeVue UI component library for Vue.js with 100+ components. Covers design token theming, unstyled mode, pass-through (pt) styling, forms with validation, and component usage." metadata: author: yuexiaoliang version: "1.0.0"

PrimeVue

PrimeVue is a next-generation Vue.js UI component suite by PrimeTek. Features 100+ components, design token-based theming, and unstyled mode for Tailwind/CSS integration.

Quick Start

npm install primevue @primevue/themes

import { createApp } from 'vue';
import PrimeVue from 'primevue/config';
import Aura from '@primeuix/themes/aura';

const app = createApp(App); app.use(PrimeVue, { theme: { preset: Aura, options: { darkModeSelector: '.dark' } }, ripple: true });

Core Concepts

Two Styling Modes

Styled Mode (default): Pre-skinned components with design token theming. Built-in presets: Aura, Material, Lara, Nora.

Unstyled Mode: Components render without styles, fully styled via Pass Through (pt) with Tailwind, Bootstrap, or custom CSS.

Pass Through (pt)

Access internal DOM of any component to add arbitrary attributes, classes, aria, or events β€” no need to wait for component API updates.

Design Tokens

Three-tier token system: primitive (raw values like colors) β†’ semantic (meaningful names like primary.color) β†’ component (per-component like button.background).

Popular Components

| Component | Tag | Use Case | |-----------|-----|----------| | Button |

πŸ’‘ Examples

npm install primevue @primevue/themes

import { createApp } from 'vue';
import PrimeVue from 'primevue/config';
import Aura from '@primeuix/themes/aura';

const app = createApp(App); app.use(PrimeVue, { theme: { preset: Aura, options: { darkModeSelector: '.dark' } }, ripple: true });

βš™οΈ Configuration

app.use(PrimeVue, {
    ripple: true,              // Enable ripple effect
    inputVariant: 'filled',    // 'outlined' | 'filled'
    unstyled: false,           // Enable unstyled mode globally
    theme: {
        preset: Aura,
        options: {
            prefix: 'p',
            darkModeSelector: '.dark',
            cssLayer: false
        }
    },
    pt: { /* global pass-through */ },
    zIndex: {
        modal: 1100,
        overlay: 1000,
        menu: 1000,
        tooltip: 1100
    }
});