Empty

Description

Create a centred empty state with an optional icon, title, description and actions.

Usage

bc_empty(title = NULL, description = NULL, icon = NULL, actions = NULL, ...)

Arguments

Argument Description
title String. The title.
description String. Helper text under the title.
icon Tag. An icon shown above the title.
actions Tag or tag list. Buttons or other actions shown below the text.
... Tag attributes, such as class.

Value

An htmltools tag.

Examples

bc_empty(
  title = "No Projects Yet",
  description = "Create your first project to get started.",
  actions = bc_button("Create Project")
)

No Projects Yet

Create your first project to get started.


bc_empty(
  title = "404 Not Found",
  description = "The page you are looking for does not exist.",
  actions = bc_input_group(
    htmltools::tags$input(type = "search", placeholder = "Try searching..."),
    htmltools::tags$span(`data-align` = "start", `aria-hidden` = "true")
  ),
  class = "border border-dashed"
)

404 Not Found

The page you are looking for does not exist.