Components
Table
Documentation and examples of tables using Perfect UI.
Basic
Using the most basic table markup, here's how the tables look. All the examples are responsive - the tables allow them to be scrolled horizontally with ease.
To create a table, simply add the `.table` class.
To make your table responsive, simply add `.table-responsive` to its parent.
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Bordered
Add border on all sides of the table and cells.
To create a bordered table, simply add the `.table-bordered` class.
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Striped
Add zebra-striping to any table row.
To create a striped table, simply add the `.table-striped` class.
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Hoverable
To create a hoverable table, simply add the `.table-hoverable` class.
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
These hoverable rows can also be combined with the striped variant:
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Borderless
A table without borders.
To create a borderless table, simply add the `.table-borderless` class.
# | First | Last | Handle | Action |
---|---|---|---|---|
1 | Mark | Otto | @mdo | |
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Headless
A table can render without a table header if no `<thead>` is supplied.
1 | Mark | Otto | @mdo | |
---|---|---|---|---|
2 | Jacob | Thornton | @fat | |
3 | Larry the Bird |
Selection
Rows can be selectable by making first column as a selectable column.
Simply add a `checkbox` in the first column.
First | Last | Handle | Action | |
---|---|---|---|---|
Mark | Otto | @mdo | ||
Jacob | Thornton | @fat | ||
Larry the Bird |
Search input
Search is used for making dropdown items searchable.
First | Last | Handle | Action | |
---|---|---|---|---|
Mark | Otto | @mdo | ||
Jacob | Thornton | @fat | ||
Larry the Bird |
Pagination
Example with pagination using Lists .