@enso-ui/checkbox
Checkbox
Description
Hierarchical checkbox managers for Enso UI.
Installation
Install the package:
yarn add @enso-ui/checkbox
This package is also available through the full enso-ui workspace bundle.
Features
- exports
CheckboxManagerandCheckboxItemsthrough the Bulma entrypoint - supports recursive grouped selections with tri-state visual feedback
- mirrors the selected ids through the
v-modelcontract - exposes item and checkbox slots so parent pages can customize rendering
Usage
<script setup>
import { CheckboxManager } from '@enso-ui/checkbox/bulma';
import { ref } from 'vue';
const selected = ref([]);
const items = {
Warehouses: { _items: [{ id: 1, label: 'Main' }] },
_items: [{ id: 2, label: 'Unassigned' }],
};
</script>
<CheckboxManager
v-model="selected"
:items="items"
title="Permissions"
/>
API
CheckboxManager
Recursive card-based manager for grouped checkbox trees.
Import: @enso-ui/checkbox/bulma
Props:
collapsed: boolean = falseinitial collapsed state.items: objectgrouped item tree with_itemsleaves.modelValue: arrayselected ids.title: stringgroup title.
Events:
changeupdate:modelValue
Slots:
checkboxreceives{ updateBelow }for custom group checkbox rendering.itemreceives{ item }for custom leaf rendering.
CheckboxItems
Leaf checkbox list used by CheckboxManager and reusable on its own.
Import: @enso-ui/checkbox/bulma
Props:
items: arraylist of selectable{ id, label }objects.modelValue: arrayselected ids.
Events:
changeupdate:modelValue
Slots:
itemreceives{ item }for custom item rendering.
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
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 4.0.6 | ^3.5.0 | MIT | |
| 4.0.5 | ^3.5.0 | MIT | |
| 4.0.3 | ^3.5.0 | MIT | |
| 4.0.2 | ^3.5.0 | MIT | |
| 4.0.1 | ^3.0 | MIT | |
| 4.0.0 | ^3.0 | MIT | |
| 3.0.11 | ^3.0 | ISC | |
| 3.0.10 | ^3.0 | ISC | |
| 3.0.9 | ^3.0 | ISC | |
| 3.0.8 | ^3.0 | ISC | |
| 3.0.7 | ^3.0 | ISC | |
| 3.0.6 | ^3.0 | ISC | |
| 3.0.5 | ^3.0 | ISC | |
| 3.0.4 | ^3.0 | ISC | |
| 3.0.3 | ^3.0 | ISC | |
| 3.0.2 | ^3.0 | ISC | |
| 3.0.1 | ^3.0 | ISC | |
| 3.0.0 | ^3.0 | ISC | |
| 2.0.2 | ^2.5.16 | ISC | |
| 2.0.1 | ^2.5.16 | ISC | |
| 2.0.0 | ^2.5.16 | ISC | |
| 1.0.4 | ^2.5.16 | ISC | |
| 1.0.3 | ^2.5.16 | ISC | |
| 1.0.2 | ^2.5.16 | ISC | |
| 1.0.1 | ^2.5.16 | ISC | |
| 1.0.0 | ^2.5.16 | ISC |