focus_color | R Documentation |
The focus_color()
function adjusts the focus shadow color of a tag element.
focus_color(x, color)
x |
A tag element or .style pronoun. |
color |
A character string specifying a color. One of,
|
An object of the same type as x
.
library(htmltools)
tags$button(
.style %>%
background_color(theme_primary()) %>%
focus_color(theme_primary()),
"Primary themed button with primary themed focus ring"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.