View source: R/table_elements.R
google_font | R Documentation |
Apply a font from Google Fonts <https://fonts.google.com/> to the table.
google_font( table = NULL, font_family = "Poppins", font_weight = 400, font_style = "normal" )
table |
Null. |
font_family |
Color of the font for the text within the table. Default is #222222. |
font_weight |
The numeric weight of the font. Must be a value between 100 and 900. Note: not every font on Google Fonts has all font weights available. Please check <https://fonts.google.com/> for available weights for desired font family. Default is 400. |
font_style |
Style of the text font. Options are "normal" or "italic". Default is "normal". |
a function that applies a font to a reactable table.
## Not run: data <- iris[10:29, ] ## Default 'Poppins' font from Google Fonts reactable(data) %>% google_font() ## Apply styles to fonts reactable(data) %>% google_font("Roboto Mono", font_weight = 500, font_style = "italic") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.