Skip to contents

Pages & theming

Wrap an app in a page, build a theme from a designer’s SASS sheet, and switch Bootstrap 5.3 colour modes.

bs_page() bs_page_fluid() bs_page_fillable()
A Bootstrap 5.3 page
bootstrict_theme()
Create a Bootstrap 5.3 theme for a bootstrict UI
parse_scss_variables()
Parse a SASS/SCSS variable sheet into a named list
set_bs_color_mode()
Switch the Bootstrap colour mode from the server
use_bootstrict()
Activate bootstrict inside a UI
use_bootstrict_golem()
Scaffold a bootstrict app as a golem project hook
bootstrict_dep()
The bootstrict HTML dependency (Shiny input bindings + supporting CSS)
bootstrap_dep()
The Bootstrap HTML dependency for a theme
bootstrap_version()
The Bootstrap version bootstrict ships

Layout

Containers, the responsive 12-column grid, and flex stacks.

bs_container()
Bootstrap container
bs_row()
Bootstrap grid row
bs_col()
Bootstrap grid column
bs_hstack() bs_vstack()
Bootstrap stacks (horizontal / vertical flex layouts)

Content

Tables, media, typography, lists and small helpers.

bs_table()
Bootstrap table
bs_img()
Bootstrap image
bs_figure() bs_figure_img() bs_figure_caption()
Bootstrap figure
bs_blockquote()
Bootstrap blockquote
bs_display_heading()
Bootstrap display heading
bs_lead()
Bootstrap lead paragraph
bs_list_unstyled() bs_list_inline()
Bootstrap unstyled / inline lists
bs_icon_link()
Bootstrap icon link
bs_ratio()
Fixed aspect-ratio container
bs_vr()
Vertical rule
bs_visually_hidden()
Visually hidden text

Forms — inputs

Bootstrap 5 form controls. Most delegate to the matching shiny::Input(); bs_range_input() and bs_color_input() are native and take update_bs_().

bs_text_input()
Bootstrap text input
bs_textarea_input()
Bootstrap textarea input
bs_numeric_input()
Bootstrap numeric input
bs_password_input()
Bootstrap password input
bs_select_input()
Bootstrap select input
bs_checkbox_input() bs_switch_input()
Bootstrap checkbox input
bs_radio_input()
Bootstrap radio button group
bs_checkbox_group_input()
Bootstrap checkbox group
bs_radio_button_input() bs_checkbox_button_input()
Bootstrap toggle button groups
update_bs_toggle_buttons()
Set the selection of a toggle button group from the server
bs_range_input()
Bootstrap range (slider) input
bs_color_input()
Bootstrap colour input
bs_date_input()
Bootstrap date input
bs_date_range_input()
Bootstrap date range input
update_bs_date_input() update_bs_date_range_input()
Set a date input from the server
bs_file_input()
Bootstrap file input
update_bs_range()
Update a range input from the server
update_bs_color()
Update a colour input from the server

Forms — layout & validation

Group, float and validate controls.

bs_input_group() bs_input_group_text()
Bootstrap input group
bs_floating_label()
Bootstrap floating label
bs_form()
Bootstrap form element
bs_form_label()
Bootstrap form label
bs_form_text()
Bootstrap form help text
bs_feedback()
Attach validation feedback to a form control
set_bs_validation()
Set a control's validation state from the server
bs_valid_feedback() bs_invalid_feedback()
Bootstrap validation feedback

Components — buttons

bs_button()
Bootstrap button
bs_button_group() bs_button_toolbar()
Bootstrap button group / toolbar
bs_close_button()
Bootstrap close button
bs_download_button()
Bootstrap download button
bs_download_link()
Bootstrap download link

Components — cards

Components — feedback

Alerts, badges, progress, spinners and loading placeholders.

bs_alert() bs_alert_heading() bs_alert_link()
Bootstrap alert
close_bs_alert()
Close an alert from the server
bs_badge()
Bootstrap badge
bs_progress() bs_progress_bar()
Bootstrap progress
update_bs_progress()
Update a progress bar from the server
bs_spinner()
Bootstrap spinner
bs_placeholder() bs_placeholder_glow() bs_placeholder_wave()
Bootstrap placeholder

Components — interactive

Accordion, carousel, collapse and list group report state as input$id and are driven from the server with update_bs_*().

bs_accordion() bs_accordion_panel()
Bootstrap accordion
update_bs_accordion()
Control an accordion from the server
bs_carousel() bs_carousel_item()
Bootstrap carousel
update_bs_carousel()
Control a carousel from the server
bs_collapse()
Bootstrap collapse
bs_collapse_trigger()
Trigger a collapse from the UI
update_bs_collapse()
Control a collapse from the server
bs_list_group() bs_list_group_item()
Bootstrap list group
update_bs_list_group()
Control a list group selection from the server

Navs & tabsets, the navbar, breadcrumbs, pagination and dropdowns.

bs_nav() bs_nav_item() bs_nav_link()
Bootstrap navigation list
update_bs_nav()
Set the active link of a nav from the server
bs_tabset() bs_tab_panel()
Bootstrap tabset
update_bs_tabset()
Control a tabset from the server
bs_navbar() bs_navbar_brand() bs_navbar_nav() bs_navbar_text()
Bootstrap navbar
bs_breadcrumb() bs_breadcrumb_item()
Bootstrap breadcrumb
bs_pagination()
Bootstrap pagination
bs_page_item()
Bootstrap pagination item
bs_pagination_numbered()
Build a numbered pager
update_bs_pagination()
Set the active page of a pager from the server
bs_dropdown() bs_dropdown_item() bs_dropdown_divider() bs_dropdown_header() bs_dropdown_text()
Bootstrap dropdown
bs_nav_dropdown()
Bootstrap dropdown inside a nav or a navbar
show_bs_dropdown() hide_bs_dropdown() toggle_bs_dropdown()
Open, close or toggle a dropdown from the server

Overlays

Declared once in the UI, opened by id from the server. Modal, offcanvas and toast, plus tooltips, popovers and scrollspy.

bs_modal() bs_modal_header() bs_modal_title() bs_modal_body() bs_modal_footer()
Bootstrap modal
show_bs_modal() hide_bs_modal() toggle_bs_modal()
Control a modal from the server
bs_modal_trigger()
Trigger a modal from the UI
bs_offcanvas()
Bootstrap offcanvas
show_bs_offcanvas() hide_bs_offcanvas() toggle_bs_offcanvas()
Control an offcanvas from the server
bs_offcanvas_trigger()
Trigger an offcanvas from the UI
bs_toast()
Bootstrap toast
bs_toast_container()
Position toasts on screen
bs_notify_toast()
Pop a transient toast notification from the server
show_bs_toast() hide_bs_toast()
Control a toast from the server
bs_tooltip()
Add a Bootstrap tooltip to a UI element
bs_popover()
Add a Bootstrap popover to a UI element
bs_scrollspy()
Bootstrap scrollspy container