@vuecs/elements
@vuecs/elements
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 fullvariant(solid/soft/outline) × semantic-color × size matrix. - 💊
<VCTag>/<VCTags>— removable, value-bound chips (single or array-driven). - 👤
<VCAvatar>— image avatar with#fallbackslot (Reka Avatar). - ➖
<VCSeparator>— horizontal/vertical rule,decorativeARIA handling. - 🖼️
<VCAspectRatio>— fixed-ratio container. - 🙈
<VCVisuallyHidden>— screen-reader-only content.
Compounds
- 🗂️ Card —
<VCCard>+ Header / Title / Description / Body / Footer.variant(outline/soft/elevated),interactivehover/focus ring for whole-card links (as-child+<NuxtLink>), andpaddingset once on the root and inherited by every band. Plus<VCCardPlaceholder>, the matching skeleton. - 🚨 Alert —
<VCAlert>+ Title / Description / Close. Persistent banner with a 15-cellvariant×colormatrix. Leading icon resolves fromcolor, an:iconname prop, or the#iconslot 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
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 | |
| 1.2.5 | ^3.x | Apache-2.0 | |
| 1.2.4 | ^3.x | Apache-2.0 | |
| 1.2.3 | ^3.x | Apache-2.0 | |
| 1.2.2 | ^3.x | Apache-2.0 | |
| 1.2.1 | ^3.x | Apache-2.0 | |
| 1.2.0 | ^3.x | Apache-2.0 | |
| 1.1.0 | ^3.x | Apache-2.0 | |
| 1.0.0 | ^3.x | Apache-2.0 |