From 3c3f2ced4e245409349751a10a148c39d6ea6a16 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Mon, 2 Dec 2024 10:29:46 -0500 Subject: [PATCH] docs: caption on top --- vignettes/custom.qmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vignettes/custom.qmd b/vignettes/custom.qmd index 96254aa1..6e15d67a 100644 --- a/vignettes/custom.qmd +++ b/vignettes/custom.qmd @@ -52,6 +52,14 @@ tt(x) |> style_tt( bootstrap_class = "table table-hover") ``` + +By default, Bootstrap 5 places captions at the bottom of the table. This can be changed by using a different class: + +```{r} +tt(head(iris), caption = "A caption on top") |> + style_tt(bootstrap_class = "table caption-top") +``` + :::