@trapezium/vue
@trapezium/vue
A data table for Vue 3 that looks right before you configure anything.
<script setup>
import { TrapeziumTable } from "@trapezium/vue"
import "@trapezium/vue/styles.css"
const users = [/* … */]
</script>
<template>
<TrapeziumTable :data="users" search selection="multiple" />
</template>
Columns, types, formatting, sorting, search and pagination all come from the data. Filters, selection, export, pinning, resizing, CSV export and URL state are all there; see the full documentation for the options.
A cell renderer may return a VNode, which is mounted as a real Vue component — props, events and all:
{ key: "actions", header: "", render: ({ row }) => h(RowMenu, { id: row.id }) }
Events: @update:state, @selection-change, @row-click.
Vue 3.4+, Nuxt 3, Vite, Astro.
Working with a coding agent? The whole API is one file inside this package: node_modules/@trapezium/vue/llms.txt.
Full documentation: github.com/Gregaly/trapezium · MIT
Related Packages
@jujiuyey/ledger-vue
Vue-native on TanStack Table and TanStack Virtual: sorting, filtering, paginatio...
448
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.0 | ^3.4.0 | MIT | |
| 0.3.0 | ^3.4.0 | MIT | |
| 0.2.0 | ^3.4.0 | MIT | |
| 0.1.1 | ^3.4.0 | MIT | |
| 0.1.0 | ^3.4.0 | MIT |