0.0.4 • Published 12 months ago

qwik-table v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

q-table

📦Install

npm i qwik-table

🦄Usage

Simply import QwikTable from the package.

import { component$ } from '@builder.io/qwik';
import data from '../data.json';
import { QwikTable } from 'qwik-table';

export default component$(() => {
  const headers = [
    { key: "player_name", label: "Player" },
    { key: "club", label: "Club" },
    { key: "position", label: "Position" },
    { key: "minutes_played", label: "Min Played" },
    { key: "match_played", label: "Matches" },
    { key: "goals", label: "Goals" },
    { key: "assists", label: "Assists" },
    { key: "distance_covered", label: "Distance Covered" },
  ];

  return (
    <div>
      <QwikTable 
        header={headers} 
        data={data}
        title='Champions League'
        headerImg='/league.png'
      />
    </div>
  );
});

See the live demo.

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago