• Home
  • Getting started
  • Foundation
  • Components
    • Accordion
    • Avatar
    • Badge
    • Bet Button
    • Bet Prediction
    • Bottom Sheet
      Deprecated
    • Button
    • Callout
    • Card
    • Carousel
    • Checkbox
    • Composable Modal
    • Date Picker
    • Dialog
    • Drawer
    • Floating Action Bar
    • Input
    • Notice
    • Pagination
    • Popover
    • Price label
    • Radio group
    • Select
    • Separator
    • Slider
    • Snackbar
    • Switch
    • Table
    • Tabs
    • Tabs Menu
    • Toggle Group
    • Tooltip
  • Patterns
  • Writing (SE)
  • Guidelines
  • Brand portal

Search the design system

Components

Table

View as markdown (opens in a new tab)

Table displays structured data in rows and columns for easy scanning and comparison.

Table

Usage

Use a table to display structured information in rows and columns, making it easy for users to scan, compare, and understand data such as transactions or game history.

When to use Table

Choose a table when users need to organize and compare multiple attributes across items, or when showing datasets that benefit from clear alignment, like lists of players, bets, or transactions.

Formatting

Anatomy

A table is composed of the following elements

Anatomy
  1. Table header – Defines column labels and provides structure for the data.
  2. Table row –Each row groups related data points that belong to the same record, transaction, or entity.
  3. Table Total – Summarizes data across the table, e.g. totals. (optional).
  4. Table cell – The smallest unit, containing a piece of data within a row and column.
  5. Table Footer – supportive text. (optional)

Size

Our tables are available in for row sizes: xsmall (32 px) small (48 px), medium (76 px), and large (96 px).

All sizes share consistent 16 px horizontal padding.

Size

Note: xsmall supports only single-line text — never use it for multi-line content.

Min and max width

Table cells follow defined width limits to ensure readability and consistency. Each column has a minimum width of 120 px and a maximum width of 400 px to prevent individual columns from dominating the layout. The last column may expand to fill any remaining space.

Cell types

Our Simple table support different cell types to match the content they display.

Text

Cell types – 1

Use for simple labels or single pieces of information.

Text + description

Cell types – 2

Use when additional context is needed under the main text.

Numeric

Cell types – 3

Use for values like amounts or percentages, always right-aligned for readability.

Modify

Variants

Tables can be configured in different variations depending on the data and context.

Default

Variants – 1

Balanced spacing for general use, offering a clear overview and comfortable readability.

Striped

Variants – 2

A striped table alternates row backgrounds to make large datasets easier to scan.

Sizes

We offer four table sizes to match content density and usage context. Each size is optimized for clarity, consistency, and accessibility across different scenarios.

Xsmall

Sizes – 1

For dense data and one-line text only.

Small

Sizes – 2

Compact, ideal for mobile and tight layouts.

Medium

Medium – 1

Default size for most use cases.

Large

Large

Spacious, best for content-rich or touch-friendly interfaces.

Behaviour

Scrolling

The table header remains sticky on vertical scroll to keep column labels visible. If the content exceeds the viewport width, the table can be scrolled horizontally. Tables have a maximum height of 90% of the viewport, after which the body becomes scrollable.

Note: Vertical scrolling should only be used on desktop. On mobile, avoid nested vertical scrolls as they create poor usability. Instead, let the table grow naturally and use horizontal scrolling or pagination when needed.

Scrolling

Screen sizes

xs –small

Tables can be scrolled horizontally if the content exceeds the viewport width. The header remains sticky on vertical scroll to keep column labels visible. (<480px).

xs –small

Medium–Large

Tables scale to available width and maintain alignment. The header is sticky on vertical scroll, and horizontal scrolling is enabled when needed. (≥481px – 1439px).

Medium–Large

XL

Tables display more columns within the grid while preserving readability. The header remains sticky, and long datasets may be scrolled. (<1440px).

XL

Best practice

Avoid long copy

Use concise text and descriptions to keep tables easy to scan. Long copy reduces readability.

Avoid long copy – 1
Use short, clear text with a concise supporting description when extra context is needed.
Avoid long copy – 2
Don’t repeat the same information in both text and description, or overload the cell with unnecessary details.

Alignment

Numbers should always be right-aligned to make comparisons easy across rows.

Alignment – 1

Keep numeric data right-aligned

Numbers should always be right-aligned to make comparisons easy across rows.

Alignment – 2

Don’t center or left-align numeric data, as it makes scanning and comparing harder.

Use spacing for readability

Tables should have enough padding and row height to feel open and easy to scan. Avoid squeezing rows and columns too tightly, as it makes the table harder to read and reduces clarity.

Use spacing for readability – 1
Keep sufficient gaps between columns and rows to support quick scanning.
Use spacing for readability – 2
Don’t cram information too tightly — it makes the table harder to read and less accessible.
ComponentsSwitch / Changelog
ComponentsTable / Code

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]@svenskaspel/ui version
4.4.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se