The following segment provides instructions for designers and developers regarding the appropriate utilization of this
component in various situations.
Do:
Use to display and compare structured data in rows and columns.Use as a tool to query consume and navigate to specific data.Use if there are at least two or more columns of data parameters.Ensure that the column headers are relevant to the data it represents and are succinct.Include rich content in the cell data to support the specific requirements of the application use cases.Enable sorting of columns in ascending or descending order with an arrow icon to indicate the order direction.Ensure that the table is responsive and stretches to the full available width.Include a table caption describing the contents of the table for accessibilityUse the built-in scroller for horizontal scrolling on mobile viewports.
Don't:
Don't use for non-structured data or data that can be presented in a simpler format.Don't overuse or clutter cell data with unnecessary content.Don't neglect to include a table caption for accessibility purposes.