Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

58 lines
1.2KB

  1. ---
  2. title: "Layout Tests"
  3. subtitle: "Testing Bulma Layout Elements"
  4. author:
  5. - name: First Author
  6. url: https://rstudio.com
  7. extra:
  8. - "First Affiliation"
  9. - "@tweeter345"
  10. - name: Second Author
  11. url: https://duckduckgo.com
  12. extra:
  13. - "Second Affiliation"
  14. - "Very Cool Guy"
  15. date: '`r strftime(Sys.time(), "%F %T")`'
  16. header-links:
  17. - name: Github
  18. url: https://github.com/gerkelab
  19. - name: Home
  20. url: https://gerkelab.com
  21. bulma:
  22. hero: ["info", "bold"]
  23. output: bulma::bulma_document
  24. editor_options:
  25. chunk_output_type: console
  26. ---
  27. ```{r setup, include=FALSE}
  28. knitr::opts_chunk$set(echo = TRUE)
  29. library(bulma)
  30. ```
  31. ## Level
  32. ### Basic
  33. ```r
  34. bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")
  35. ```
  36. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  37. ### Heading/Number Style
  38. ```r
  39. bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")
  40. ```
  41. `r bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")`
  42. #### Dynamic Level
  43. ```{r}
  44. iris_values <- purrr::map(iris, ~ length(unique(.)))
  45. bulma_level(iris_values, style = "header")
  46. ```