Skip to contents

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)
#> <input id="agree" name="agree" class="ds-input ds-shiny-input" type="checkbox"/>
#> <label for="agree">I agree to the terms</label>