Table

Column Definition

In addition to data, you can pass an array of column definition objects, detailed in the API.

Foods of the World

Fresh FruitsVeritable VegetablesGood GrainsDelectable DairyPowerful Protein
PomelloBok ChoiChiaPuleCrickets
StarfruitRomanescoSorghumCasu marzuBarnacles
DurianRampsTeffVieux LilleInca nuts
PersimmonFiddleheadsQuinoaMilbenkaseSpirulina
() => {
  const columns = [
    { content: 'Fresh Fruits', key: 'Fruits' },
    { content: 'Veritable Vegetables', key: 'Vegetables' },
    { content: 'Good Grains', key: 'Grains' },
    { content: 'Delectable Dairy', key: 'Dairy' },
    { content: 'Powerful Protein', key: 'Protein' }
  ];

  return (
    <Table
      columns={columns}
      data={data}
      rowKey="Fruits"
      title="Foods of the World"
      hideTitle />
  );
}