boxProfile goes inside a box. Displays user information in an elegant container.
boxProfileItem is an sub-element of a boxProfile.
boxProfile(..., image = NULL, title, subtitle = NULL, bordered = FALSE)
boxProfileItem(title, description)
any element such as boxProfileItem.
profile image, if any.
item title.
subtitle.
Whether the container should have a border or not. FALSE by default.
item info.
# Box with boxProfile
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "Box with profile",
status = "primary",
boxProfile(
image = "https://adminlte.io/themes/AdminLTE/dist/img/user4-128x128.jpg",
title = "Nina Mcintire",
subtitle = "Software Engineer",
bordered = TRUE,
boxProfileItem(
title = "Followers",
description = 1322
),
boxProfileItem(
title = "Following",
description = 543
),
boxProfileItem(
title = "Friends",
description = 13287
)
)
)
),
title = "boxProfile"
),
server = function(input, output) { }
)
}