Hi there! I have a reactable with an html title, like this:
library(reactable)
library(htmltools)
options(reactable.theme = reactableTheme(
color = "hsl(233, 9%, 87%)",
backgroundColor = rgb(38/255,42/255,51/255,142/240),
borderColor = rgb(152/255,156/255,165/255,240/240)
))
example<- reactable(data.frame(country=c("argentina","brazil"),
value=c(1,2)
))
final <- htmlwidgets::prependContent(example,
list(h2(class = "title", "title 1",style="background-
color:#696969;color:#F5F5F5"),
h4(class = "subtitle", "subtitle",style="background-
color:#696969;color:#F5F5F5")))
print(final)
There is any way I can use the same background color for both, the body and the titles? So I do not have any white spaces between the titles and the table