BlogPlaygroundOne

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.

Usage

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

API

ComponentDescription
v-tablePrimary Component
Toggle Inline API

Examples

Props

Theme

Use theme prop to switch table to another theme.

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

Density

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

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

Height

Use the height prop to set the height of the table.

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

Fixed header

Use the fixed-header prop together with the height prop to fix the header to the top of the table.

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

Striped

By applying the striped prop, you can have a background applied to either the even or odd rows of the table. Color can be further adjusted using sass variables.

Name Calories
Frozen Yogurt159
Ice cream sandwich237
Eclair262
Cupcake305
Gingerbread356
Jelly bean375
Lollipop392
Honeycomb408
Donut452
KitKat518

Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.