reactable icon indicating copy to clipboard operation
reactable copied to clipboard

Add title elements

Open lenafm opened this issue 3 years ago • 0 comments

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")

image

lenafm avatar Aug 16 '21 10:08 lenafm