How to add flexdashboard style valueBox in Quarto?

Viewed 53

I have a Quarto qmd file with the below code to display a valueBox.

---
title: "My Dashboard"
output: 
  flexdashboard::flex_dashboard:
  orientation: rows
---

```{r setup, include=FALSE}
library(dygraphs)
library(flexdashboard)
```

### Data

```{r}
valueBox("42", color = "yellow", icon = "fa-calendar", caption = "cases of soda")
```

The code is rendered as below without the valueBox being created.

enter image description here


Any thoughts on how to render the valueBox like it does below in rmd files?

enter image description here

0 Answers
Related