| ds_input | R Documentation |
Create a styled text input using Designsystemet styles.
ds_input(
inputId,
value = "",
type = "text",
placeholder = NULL,
size = NULL,
readonly = FALSE,
disabled = FALSE,
invalid = FALSE,
...
)
inputId |
The input slot for Shiny reactivity |
value |
Initial value |
type |
Input type ("text", "email", "password", "number", "tel", "url") |
placeholder |
Placeholder text |
size |
Size variant ("sm", "md", "lg") |
readonly |
If TRUE, makes the input read-only |
disabled |
If TRUE, disables the input |
invalid |
If TRUE, shows invalid state |
... |
Additional attributes |
A Shiny tag object
ds_input("name", placeholder = "Enter your name")
ds_input("email", type = "email", placeholder = "your@email.com")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.