@vuecs/elements

Atomic, presentation-only UI elements for vuecs (Separator, Tag, Tags, Avatar, AspectRatio, VisuallyHidden, Badge).
6,909 4
Install
npm install @vuecs/elements
Latest Version:1.5.1
Vue:3
License:Apache-2.0
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: tada5hi

@vuecs/elements

npm version CI license

The atomic building blocks of vuecs. Small, presentation-only elements — each one ≤150 lines, pure CSS or a thin Reka UI wrapper, owning its own theme key.

✨ What's inside

Atoms

  • 🏷️ <VCBadge> — status indicator with the full variant (solid / soft / outline) × semantic-color × size matrix.
  • 💊 <VCTag> / <VCTags> — removable, value-bound chips (single or array-driven).
  • 👤 <VCAvatar> — image avatar with #fallback slot (Reka Avatar).
  • ➖ <VCSeparator> — horizontal/vertical rule, decorative ARIA handling.
  • 🖼️ <VCAspectRatio> — fixed-ratio container.
  • 🙈 <VCVisuallyHidden> — screen-reader-only content.

Compounds

  • 🗂️ Card — <VCCard> + Header / Title / Description / Body / Footer. variant (outline / soft / elevated), interactive hover/focus ring for whole-card links (as-child + <NuxtLink>), and padding set once on the root and inherited by every band. Plus <VCCardPlaceholder>, the matching skeleton.
  • 🚨 Alert — <VCAlert> + Title / Description / Close. Persistent banner with a 15-cell variant × color matrix. Leading icon resolves from color, an :icon name prop, or the #icon slot for arbitrary content.
  • 📂 Collapse — <VCCollapse> + Trigger / Content (Reka Collapsible) with auto-chevron and height animation.

📦 Installation

npm install @vuecs/elements

⚡ Usage

<VCBadge color="success" variant="soft">Active</VCBadge>

<VCCard variant="elevated" padding="compact">
    <VCCardHeader>
        <VCCardTitle>Monthly revenue</VCCardTitle>
        <VCCardDescription>Compared to last month</VCCardDescription>
    </VCCardHeader>
    <VCCardBody>…</VCCardBody>
</VCCard>

📚 Documentation

One page per element on vuecs.dev:

Badge · Tag & Tags · Avatar · Separator · AspectRatio · VisuallyHidden · Card · Alert · Collapse

License

Made with 💚

Published under Apache 2.0 License.

Related Packages

@vuecs/overlays

Overlay components (Modal, Popover, Tooltip, DropdownMenu, ContextMenu) for vuec...

6,801 4
v-aspect-ratio

Aspect ratio directive for Vue.js

820 29
vue-avatar

Avatar component for Vue.js

466,478 612
vue-stripe

Vue components for Stripe.js and Stripe Elements

22,905 8

Version History

Version Released Vue License
1.5.1 ^3.x Apache-2.0
1.5.0 ^3.x Apache-2.0
1.4.0 ^3.x Apache-2.0
1.3.1 ^3.x Apache-2.0
1.3.0 ^3.x Apache-2.0