ds_table: Table Component

View source: R/ds-table.R

ds_tableR Documentation

Table Component

Description

Create a styled table using Designsystemet styles.

Usage

ds_table(..., size = NULL, class = NULL)

Arguments

...

Table content (thead, tbody, etc.)

size

Size variant ("sm", "md", "lg")

class

Additional CSS classes

Value

A Shiny tag object

Examples

ds_table(
  ds_thead(
    ds_tr(
      ds_th("Name"),
      ds_th("Email")
    )
  ),
  ds_tbody(
    ds_tr(
      ds_td("John Doe"),
      ds_td("john@example.com")
    )
  )
)

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.