#' Create an UIkit badge
#'
#' Build an UIkit badge.
#'
#' @param content Badge Text. Avoid large text.
#'
#' @examples
#' if(interactive()){
#' library(shiny)
#'
#' shiny::shinyApp(
#' ui = UIkitPage(
#' title = "My UIkit application",
#' UIkitBadge(content = 100)
#' ),
#' server = function(input, output) {}
#' )
#' }
#'
#' @author David Granjon, \email{dgranjon@@ymail.com}
#'
#' @export
UIkitBadge <- function(content) {
stopifnot(!is.null(content))
shiny::tags$span(class = "uk-badge", content)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.