Skip to contents

Create a styled textarea using Designsystemet styles.

Usage

ds_textarea(
  inputId,
  value = "",
  placeholder = NULL,
  rows = 3,
  size = NULL,
  readonly = FALSE,
  disabled = FALSE,
  invalid = FALSE,
  ...
)

Arguments

inputId

The input slot for Shiny reactivity

value

Initial value

placeholder

Placeholder text

rows

Number of visible rows

size

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

readonly

If TRUE, makes the textarea read-only

disabled

If TRUE, disables the textarea

invalid

If TRUE, shows invalid state

...

Additional attributes

Value

A Shiny tag object

Examples

ds_textarea("msg", placeholder = "Type here...", rows = 4)
#> <textarea id="msg" name="msg" class="ds-input ds-shiny-input" placeholder="Type here..." rows="4"></textarea>