ds_suggestion: Suggestion/Autocomplete Component

View source: R/ds-suggestion.R

ds_suggestionR Documentation

Suggestion/Autocomplete Component

Description

Create an autocomplete input with suggestions.

Usage

ds_suggestion(
  inputId,
  choices = NULL,
  value = "",
  placeholder = NULL,
  size = NULL,
  ...
)

Arguments

inputId

The input slot for Shiny reactivity

choices

Character vector of suggestion choices

value

Initial value

placeholder

Placeholder text

size

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

...

Additional attributes

Value

A Shiny tag object

Examples

ds_suggestion("city",
  choices = c("Oslo", "Bergen", "Trondheim", "Stavanger"),
  placeholder = "Search for a city..."
)

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