
Last chance! 50% off unlimited learning
Sale ends in
f7Chip
is an improved badge container.
f7Chip(
label = NULL,
image = NULL,
icon = NULL,
outline = FALSE,
status = NULL,
iconStatus = NULL,
closable = FALSE
)
Chip label.
Chip image, if any.
Icon, if any. IOS and Material icons available.
Whether to outline chip. FALSE by default.
Chip color: see here for valid colors https://framework7.io/docs/chips.html.
Chip icon color: see here for valid colors https://framework7.io/docs/chips.html.
Whether to close the chip. FALSE by default.
David Granjon, dgranjon@ymail.com
if(interactive()){
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "Chips",
f7SingleLayout(
navbar = f7Navbar(title = "f7Chip"),
f7Block(
strong = TRUE,
f7Chip(label = "simple Chip"),
f7Chip(label = "outline Chip", outline = TRUE),
f7Chip(label = "icon Chip", icon = f7Icon("plus_circle_fill"), iconStatus = "pink"),
f7Chip(label = "image Chip", image = "https://loremflickr.com/g/320/240/london"),
f7Chip(label = "closable Chip", closable = TRUE),
f7Chip(label = "colored Chip", status = "green"),
f7Chip(label = "colored outline Chip", status = "green", outline = TRUE)
)
)
),
server = function(input, output) {}
)
}
Run the code above in your browser using DataLab