Explore Templates

Tables

Documentation and examples for opt-in styling of tables (given their prevalent use in JavaScript plugins) with Bootstrap.

Regular table
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
FooterFooterFooterFooter
Table head options

Similar to tables and dark tables, use the modifier classes .thead-light or .thead-dark to make <thead>s appear light or dark gray.

#thead-primaryLast NameUsernameRole
#thead-secondaryLast NameUsernameRole
#thead-successLast NameUsernameRole
#thead-warningLast NameUsernameRole
#thead-infoLast NameUsernameRole
#thead-dangerLast NameUsernameRole
#thead-darkLast NameUsernameRole
#thead-lightLast NameUsernameRole
Table hover

Use the hover props to enable a hover state on <Table>.

#ProductsPopularitySales
1Milk Powder
28.76%
2Air Conditioner
8.55%
3RC Cars
58.56%
4Down Coat
35.76%
Bordered table

Use the bordered props for borders on all sides of the table and cells.

#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
Borderless table

Use the borderless props for a table without borders.

#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
Striped table

Use the striped props to add zebra-striping to any table row within the <tbody>.

TaskProgressDeadlineAction
Lunar probe project
May 15, 2015
Dream successful plan
July 1, 2015
Office automatization
Apr 12, 2015
The sun climbing plan
Aug 9, 2015
Open strategy
Apr 2, 2015
Tantas earum numeris
July 11, 2015
Large table

Use the size="lg" props to make tables large.

#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
Small table

Use size="sm" to make tables more compact by cutting cell padding in half.

#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
Responsive table

Across every breakpoint, use responsive for horizontally scrolling tables. Responsive tables are wrapped automatically in a div. or Use responsive="sm", responsive="md", responsive="lg", or responsive="xl" as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.

#HeadingHeadingHeadingHeadingHeadingHeadingHeadingHeadingHeading
1CellCellCellCellCellCellCellCellCell
2CellCellCellCellCellCellCellCellCell
3CellCellCellCellCellCellCellCellCell
Contextual classes

Use classes ( .active, .success, .info, .warning, .danger ) to color table rows or individual cells.

#Column headingColumn headingColumn heading
ActiveColumn contentColumn contentColumn content
DefaultColumn contentColumn contentColumn content
PrimaryColumn contentColumn contentColumn content
SecondaryColumn contentColumn contentColumn content
SuccessColumn contentColumn contentColumn content
DangerColumn contentColumn contentColumn content
WarningColumn contentColumn contentColumn content
InfoColumn contentColumn contentColumn content
LightColumn contentColumn contentColumn content
DarkColumn contentColumn contentColumn content
Table search

Add class .table-filter in table tag. and add .table-search in input field.

#First NameLast NameUsername
1JensBrinckerBrincker123
2MarkHayHay123
3AnthonyDavieDavie123
4DavidPerryPerry123
5AnthonyDavieDavie123
6AlanGilchristGilchrist123