@macharibia/vue-datatable
v1.0.6
Published
A Vue 3 data table component using TanStack Table and shadcn/vue
Readme
Vue DataTable
A Vue 3 data table component using TanStack Table and shadcn/vue.
Installation
npm install raftel-vue-datatableDependencies
This package requires the following peer dependencies:
npm install @tanstack/vue-table lucide-vue-nextRequired shadcn/vue components
Install the required shadcn/vue components:
npx shadcn-vue@latest add table
npx shadcn-vue@latest add button
npx shadcn-vue@latest add dropdown-menu
npx shadcn-vue@latest add select
npx shadcn-vue@latest add input
npx shadcn-vue@latest add badge
npx shadcn-vue@latest add separator
npx shadcn-vue@latest add popover
npx shadcn-vue@latest add commandUsage
<script setup lang="ts">
import { DataTable } from 'raftel-vue-datatable'
import type { ColumnDef } from '@tanstack/vue-table'
const columns: ColumnDef[] = [
// Define your columns
]
const data = [
// Your data array
]
</script>
<template>
<DataTable
:columns="columns"
:data="data"
/>
</template>Documentation
[Link to your documentation]
License
MIT
