quarto-dev / quarto-dev/quarto-cli

Make Value Boxes possible outside of format: dashboard

Open
#8,475 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement html
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/8413

Originally posted by gl2324 January 24, 2024

Description

I really like the look of the Value Boxes added in Version 1.4

Right now it is not possible to add them in the following way when the format is not dashboard.

#| content: valuebox
#| title: "Articles per day"
#| icon: pencil
#| color: primary
dict(
  value = articles
)

I know there is a way through using R and the bslib-package but I don't have access to R.

Is there an easy way to achieve this or will it be possible in 1.5?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Value Boxes documentation and the shown content: valuebox Python example, then compare it with the dashboard-only behavior described in the issue. Done means the same value-box syntax works when the format is not dashboard, with the title, icon, color, and value rendered correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.