Active theme set to Nord LightNord Dark and saved in preferences.
Copied to clipboard.
Error submitting your feedback! Please try again.

Table Ready

Table is used to organize and display information from a data set. Provides table styles in addition to features like sticky headers and support for narrow viewports.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-table>
<table>
<thead>
<tr>
<th class="n-table-align-right">Amount</th>
<th>Description</th>
<th>Method</th>
<th class="n-table-align-right">Date</th>
</tr>
</thead>
<tbody>
<tr>
<td class="n-table-align-right">350,00&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">20.3.2021</td>
</tr>
<tr>
<td class="n-table-align-right">29,90&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">19.3.2021</td>
</tr>
<tr>
<td class="n-table-align-right">50,00&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">18.3.2021</td>
</tr>
<tr>
<td class="n-table-align-right">290,00&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">17.3.2021</td>
</tr>
<tr>
<td class="n-table-align-right">49,90&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">16.3.2021</td>
</tr>
<tr>
<td class="n-table-align-right">25,00&thinsp;</td>
<td class="n-table-ellipsis">
Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet consectetuer
adipiscing suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit amet
consectetuer adipiscing
</td>
<td>Card</td>
<td class="n-table-align-right">15.3.2021</td>
</tr>
</tbody>
</table>
</nord-table>

Properties

PropertyAttributeDescriptionTypeDefault
densitydensity

Controls the density of the table's rows and headers. Relaxed increases space, condensed reduces space.

"condensed" | "default" | "relaxed""default"

Slots

Slot nameDescription
Default slotThe table.

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • Use when you need to display tabular data in a view.

Don’t #

  • Don’t use to display list data.
  • Don’t use tables for layout.

Content guidelines #

Headers in a table should be clear, accurate and predictable. When writing headers, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):

User account
User Account

Include units of measurement symbols in the table header so they aren’t repeated throughout every single column:

Temperature °C
Temperature

Avoid unnecessary words and articles in table headers, such as “the”, “an” or “a”:

Description
A description

Keep decimals consistent. For example, don’t use 3 decimals in one row and 2 in others:

30.00
25.00
30.000
25.0

Additional considerations #

  • Nord’s table component acts as a lightweight and un-opinionated component for enhancing tabular data. It is up to the user of this component to make sure that the table markup they use is accessible.
  • It’s important to pay close attention to semantics when authoring tables. The markup in the examples can be used as a starting point. However, be aware that HTML tables have a large feature set which cannot be fully covered in this documentation.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Localization

Nord provides a lightweight solution for localizing its components. Not all components need localizing, as for the most part snippets of text are set per instance. For full localization guidelines, please see Localization documentation.

Localization Guidelines

Troubleshooting

If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.