@enso-ui/accessories

Accessory tabs wrapper with translated labels and per-tab counters for Enso UI.
12,814 1
Install
npm install @enso-ui/accessories
Latest Version:5.0.4
Vue:3
Older releases:2
License:MIT
Last Updated:May 18, 2026
Links: GitHub  ·  npm
Maintainer: aocneanu

Accessories

License Stable Downloads Vue JavaScript SCSS npm Issues Merge Requests

Description

Accessory tabs wrapper with translated labels and per-tab counters for Enso UI.

Installation

Install the package:

yarn add @enso-ui/accessories

This package is also available through the full enso-ui workspace bundle.

Features

  • wraps @enso-ui/tabs/bulma and replaces the default tab-label renderer
  • switches between translated text labels and Font Awesome icons through the icons prop
  • exposes a mutable count map to the default slot so tab panes can publish badges
  • renders dark Bulma counter tags next to any tab that sets a positive count

Usage

<script setup>
import Accessories from '@enso-ui/accessories/bulma';
import { Tab } from '@enso-ui/tabs/bulma';
</script>

<Accessories v-slot="{ count }">
    <tab id="Comments">
        <CommentsCard @update="count.Comments = 6" />
    </tab>
    <tab id="Documents">
        <DocumentsCard @update="count.Documents = 2" />
    </tab>
</Accessories>

API

Accessories

Default export that wraps EnsoTabs and customizes the label slot.

Import: @enso-ui/accessories/bulma

Props:

  • icons: boolean = false toggles icon-based labels instead of translated text labels.

Events:

  • No public emits.

Slots:

  • default receives { count }, a mutable object keyed by tab id.

Depends On

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

License

MIT

Related Packages

@enso-ui/quick-view

Slide-out quick-view panel for Enso UI.

6,052
vue

The progressive JavaScript framework for building modern web UI.

468,054,189 54,906
vue
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@vueuse/shared
260,835,866 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

257,315,514 686

Version History

Version Released Vue License
5.0.4 ^3.5.0 MIT
5.0.3 ^3.5.0 MIT
5.0.2 ^3.5.0 MIT
5.0.1 ^3.0 MIT
5.0.0 ^3.0 MIT