@gits-id/table
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.4 • Public • Published

DataTable

DataTable component.

Installation

npm

npm i @gits-id/table

yarn

yarn add @gits-id/table

pnpm

pnpm add @gits-id/table

Usage

<script setup lang="ts">
import VDataTable from '@gits-id/table';
import '@gits-id/table/dist/style.css';

const states = ['active', 'inactive'];

const items = [...Array(30)].map((_, index) => ({
  index,
  name: `User-${index}`,
  email: `user-${index}@example.com`,
  age: index + 1 * 10,
  state: states[Math.floor(Math.random() * states.length)],
}));

const headers = [
  {
    value: 'index',
    text: 'No.',
  },
  {
    value: 'name',
    text: 'Name',
  },
  {
    value: 'email',
    text: 'Email',
  },
];
</script>

<template>
  <VDataTable :items="items" :headers="headers" />
</template>

Documentation

View full documentation here.

License

MIT

Package Sidebar

Install

npm i @gits-id/table

Weekly Downloads

10

Version

1.0.0-beta.4

License

MIT

Unpacked Size

316 kB

Total Files

32

Last publish

Collaborators

  • gravitano