Table

The table component visualises and organizes data in rows and columns. It helps users scan for patterns and develop insights from data.


Component data

Component resources:
SCSS files l coc.table.js

Functional grouping: Text and data

Demo

Configure: select the dropdowns below to display the variety of options that a table supports.

Some data
Icon SVG Text Description

Singles

Singles

Singles

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Couples

Couples

Couples

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.

Families

Families

Families

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore:


Code


				
			

Responsive preview

Usage best practices

Related components:

 

Table variations, features and usage
Variation Unique features Usage
Normal view

The table visual formatting and layout is preserved. The table may be scrolled horizontally in order to see all column data.

use when there are many rows and columns and the user has to compare data across multiple columns.

Stacked view

The rows are collapsed and styled as self-contained units. Inside each row, the column data is stacked.

Use when each table row could be viewed as a self-contained unit and the user does not need to compare data across multiple columns.

Do

Write clearly and concisely.

Highlight keywords when needed.

Use bulleted lists for higher scannability.

Don't

Write a lengthy paragraph with multiple ideas. This can be visually overwhelming and difficult for users to read.

Use copy that was written for other mediums. Web copy should be shorter and clearer to support the way users interact with websites.