Accessory tabs wrapper with translated labels and per-tab counters for Enso UI.
Install the package:
yarn add @enso-ui/accessoriesThis package is also available through the full enso-ui workspace bundle.
- wraps
@enso-ui/tabs/bulmaand replaces the default tab-label renderer - switches between translated text labels and Font Awesome icons through the
iconsprop - exposes a mutable
countmap to the default slot so tab panes can publish badges - renders dark Bulma counter tags next to any tab that sets a positive count
<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>Default export that wraps EnsoTabs and customizes the label slot.
Import: @enso-ui/accessories/bulma
Props:
icons: boolean = falsetoggles icon-based labels instead of translated text labels.
Events:
- No public emits.
Slots:
defaultreceives{ count }, a mutable object keyed by tab id.
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!