ds_tabs: Tabs Component

View source: R/ds-tabs.R

ds_tabsR Documentation

Tabs Component

Description

Create a tabbed interface using Designsystemet tabs.

Usage

ds_tabs(inputId, ..., class = NULL)

Arguments

inputId

The input slot for Shiny reactivity

...

Child elements (typically ds_tablist and ds_tabpanel elements)

class

Additional CSS classes

Value

A Shiny tag object

Examples

ds_tabs("mytabs",
  ds_tablist(
    ds_tab("First", value = "tab1", selected = TRUE),
    ds_tab("Second", value = "tab2")
  ),
  ds_tabpanel(value = "tab1", "Content 1"),
  ds_tabpanel(value = "tab2", "Content 2")
)

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