Tables

The simpler of the table components is v-table, a basic wrapper component for the HTML <table> element. In addition, regular table elements such as <thead>, <tbody>, <tr>, and <td> work by default.

Basic

Desserts(100g Servings)CaloriesFat(g)Carbs(g)Protein(g)
Frozen Yogurt1596244
Ice cream sandwich2376244
Eclair2626244
Cupcake3056244
Gingerbread3566244

Theme

Use theme prop to switch table to the dark theme.

Desserts(100g Servings)CaloriesFat(g)Carbs(g)Protein(g)
Frozen Yogurt1596244
Ice cream sandwich2376244
Eclair2626244
Cupcake3056244
Gingerbread3566244

Density

You can show a dense version of the table by using the density prop.

Desserts(100g Servings)CaloriesFat(g)Carbs(g)Protein(g)
Frozen Yogurt1596244
Ice cream sandwich2376244
Eclair2626244
Cupcake3056244
Gingerbread3566244

Height

You can set the height of the table by using the height prop.

Desserts(100g Servings)CaloriesFat(g)Carbs(g)Protein(g)
Frozen Yogurt1596244
Ice cream sandwich2376244
Eclair2626244
Cupcake3056244
Gingerbread3566244

Fixed Header

You can fix the header of table by using the fixed-header prop.

Desserts(100g Servings)CaloriesFat(g)Carbs(g)Protein(g)
Frozen Yogurt1596244
Ice cream sandwich2376244
Eclair2626244
Cupcake3056244
Gingerbread3566244
CONTENTS
  • Introduction

  • Basic

  • Theme

  • Density

  • Height

  • Fixed Header