# NOT RUN {
### Possible colors
colors <- c(
"red", "purple", "indigo", "blue", "cyan", "teal", "green",
"yellow", "amber", "orange", "grey", "white"
)
div(
lapply(colors, function(color) {
badge(color) %>%
background(color) %>%
margin(2) %>%
padding(1)
})
) %>%
display("flex") %>%
flex(wrap = TRUE)
# }
Run the code above in your browser using DataLab