ds_checkbox: Checkbox Component

View source: R/ds-input.R

ds_checkboxR Documentation

Checkbox Component

Description

Create a styled checkbox using Designsystemet styles.

Usage

ds_checkbox(inputId, label, value = FALSE, size = NULL, disabled = FALSE, ...)

Arguments

inputId

The input slot for Shiny reactivity

label

The checkbox label

value

Initial checked state

size

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

disabled

If TRUE, disables the checkbox

...

Additional attributes

Value

A Shiny tag object

Examples

ds_checkbox("agree", "I agree to the terms", value = FALSE)

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