Skip to content

Components ​

@eldrajs/ui is a set of Vue 3 components for storefronts: buttons and forms, product cards and prices, menus, dialogs and more. They are accessible out of the box, and you restyle them with CSS variables, not by forking them.

Every example on these pages is live. Click it, type in it, open it.

Install ​

bash
pnpm add @eldrajs/ui vue

Import the styles once, in your app's entry file:

ts
import '@eldrajs/ui/style.css';

Then import the components you use:

vue
<script setup lang="ts">
import { Button } from '@eldrajs/ui';
</script>

<template>
  <Button variant="primary">Add to cart</Button>
</template>

Already using Tailwind?

Import @eldrajs/ui/components.css instead of style.css. It leaves your own page styles alone. The UI reference explains every style entry.

Make it look like your brand ​

Every colour, radius, font and spacing step is a CSS variable starting with --eldra-. Set the ones you want to change:

css
:root {
  --eldra-color-primary: #1d4ed8;
  --eldra-radius-md: 12px;
}

All components ​

  • Actions and forms: buttons, links, text fields, checkboxes, switches, sliders and form layout.
  • Selection and search: selects, autocomplete, search, chips, variant and currency pickers, filters.
  • Display and commerce: badges, prices, ratings, product and content cards, images, avatars, icons, loading states.
  • Navigation: breadcrumbs, menus, tabs, accordions, pagination, steps, carousels.
  • Overlays and feedback: dialogs, drawers, popovers, tooltips, toasts, notices, lightboxes and layout helpers.

For every prop, slot and style hook, see the UI reference and the package's README.

Eldra