reactable
reactable copied to clipboard
Add title elements
Add title
, subtitle
, caption
and logo
elements to reactable
table.
The new elements can be styled using CSS with titleStyle
, subtitleStyle
, captionStyle
, and logoStyle
respectively. The background behind the elements can be styled using CSS with backgroundStyle
.
Passing a string or character vector of google fonts to googlefonts
imports the fonts.
title <- "some title"
titleStyle <- "color: red; font-family: Lato; font-size:18px;"
tbl <- reactable(data.frame(x = "a", stringsAsFactors = TRUE), title = title, titleStyle = titleStyle, googlefonts = "Lato")