Skip to content

Commit

Permalink
docs: caption on top
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Dec 2, 2024
1 parent 1f84734 commit 3c3f2ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vignettes/custom.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
```

:::


Expand Down

0 comments on commit 3c3f2ce

Please sign in to comment.