A native <input type="date"> with the Bootstrap .form-control class, as
the Bootstrap 5.3 forms reference has it: the browser supplies the calendar.
Usage
bs_date_input(
id,
label = NULL,
value = NULL,
...,
min = NULL,
max = NULL,
size = NULL,
help = NULL,
width = NULL
)Arguments
- id
Input id; selected value available as
input$id.- label
Input label.
- value
Initial date (a
Dateor"yyyy-mm-dd"string), orNULLfor an empty field.- ...
Extra attributes applied to each radio
<input>.- min, max
Earliest / latest selectable date.
- size
Control size:
"sm"or"lg".- help
Help text rendered below the control (
.form-text).- width
CSS width (e.g.
"100%","200px").
Details
This does not delegate to shiny::dateInput(), which loads
bootstrap-datepicker – a third-party stylesheet whose calendar markup
(.datepicker, .datepicker-days, ...) appears nowhere in the Bootstrap
documentation and which a designer's SASS sheet cannot reach. The
consequence is that format, language, weekstart and datesdisabled
are gone: the browser owns the presentation, and there is no Bootstrap way
to ask it for another. Use update_bs_date_input() rather than
shiny::updateDateInput().