Table

Table is a flexible component for displaying tabular data. It supports zebra striping, sticky rows/columns, and size variants for responsive and visually appealing tables.

Basic Usage

The default table (medium size, no modifiers).

NameEmailRole
Alicealice@example.comAdmin
Bobbob@example.comUser
Code Example
Basic.vue

Table

The Table component renders a table element and supports zebra striping, sticky rows/columns, and size variants. The default size is md.

Table Props Type Description
zebra
boolean

Enables zebra striping on rows.

pinRows
boolean

Makes all rows in and sticky.

pinCols
boolean

Makes all columns sticky.

size
string

Sets the table size. Options: - xs - sm - md (default) - lg - xl

   
xs
boolean

Set size to xs.

   
sm
boolean

Set size to sm.

   
md
boolean

Set size to md.

   
lg
boolean

Set size to lg.

   
xl
boolean

Set size to xl.

Table Slots Description
default

The default slot. Place table rows, headers, and cells as children.

Examples

Zebra Stripes

Table with zebra striping using the zebra prop.

NameEmailRole
Alicealice@example.comAdmin
Bobbob@example.comUser
Carolcarol@example.comEditor
Daviddavid@example.comViewer
Evaeva@example.comAdmin
Code Example
Zebra.vue

Bordered Table

Table with border, background, and rounded corners for enhanced visual separation.

NameJobFavorite Color
1Cy GandertonQuality Control SpecialistBlue
2Hart HagertyDesktop Support TechnicianPurple
3Brice SwyreTax AccountantRed
Code Example
Bordered.vue

Sticky Rows

Table with sticky header/footer rows using the pin-rows prop.

#NameEmailRoleDepartmentStatusLocationNotes
1Alicealice@example.comAdminHRActiveNYTeam Lead
2Bobbob@example.comUserEngineeringInactiveSFRemote
3Carolcarol@example.comEditorMarketingActiveLAPart-time
4Daviddavid@example.comViewerFinanceActiveNYContractor
5Evaeva@example.comAdminHRInactiveSFNew Hire
6Frankfrank@example.comUserEngineeringActiveLAOn Leave
7Gracegrace@example.comEditorMarketingActiveNYTeam Lead
8Hankhank@example.comViewerFinanceInactiveSFRemote
9Ivyivy@example.comAdminHRActiveLAPart-time
10Jackjack@example.comUserEngineeringInactiveNYContractor
11Karenkaren@example.comEditorMarketingActiveSFNew Hire
12Leoleo@example.comViewerFinanceActiveLAOn Leave
13Monamona@example.comUserEngineeringActiveNYTeam Lead
14Ninanina@example.comAdminHRInactiveSFRemote
15Oscaroscar@example.comEditorMarketingActiveLAPart-time
16Paulpaul@example.comViewerFinanceInactiveNYContractor
17Quinnquinn@example.comUserEngineeringActiveSFNew Hire
18Ritarita@example.comAdminHRActiveLAOn Leave
19Samsam@example.comEditorMarketingInactiveNYTeam Lead
20Tinatina@example.comViewerFinanceActiveSFRemote
21Umauma@example.comUserEngineeringActiveLAPart-time
22Victorvictor@example.comAdminHRInactiveNYContractor
#NameEmailRoleDepartmentStatusLocationNotes
Code Example
Sticky.vue

Size Variants

Table with different sizes using the size prop or boolean flags.

XS
Extra Small
SM
Small
MD
Medium
LG
Large
XL
Extra Large
Code Example
Sizes.vue

Visual Elements

Table with checkboxes, avatars, badges, buttons, and other visual elements.

NameJobFavorite Color
Hart Hagerty avatar
Hart Hagerty United States
Zemlak, Daniel and Leannon
Desktop Support Technician
Purple
Brice Swyre avatar
Brice Swyre China
Carroll Group
Tax Accountant
Red
Marjy Ferencz avatar
Marjy Ferencz Russia
Rowe-Schoen
Office Assistant I
Crimson
Yancy Tear avatar
Yancy Tear Brazil
Wyman-Ledner
Community Outreach Specialist
Indigo
Code Example
VisualElements.vue