The .style
pronoun allows you to define styles for a tag element within the
context of the element. Without the .style
pronoun tag styles are applied
outside and after constructing a tag element.
div(". . .") %>% background("primary") %>% display("flex")
However, once the content of a tag element grows to more than a few lines,
associating the element's styles with the element becomes less and less
intuitive. In these situations, make use of the .style
pronoun.
div( .style %>% border("primary") %>% font("primary"), p(". . ."), p(". . .") )
1 |
Complex components such as shiny::radioButtons()
or
yonder::listGroupInput()
may need a non-standard prefix for the CSS
classes applied by cascadess' functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.