Item

Description

Create a row of content with an optional icon, text, and actions.

Usage

bc_item(
  ...,
  title = NULL,
  description = NULL,
  media = NULL,
  actions = NULL,
  href = NULL,
  variant = "default",
  size = "default",
  role = NULL
)

bc_item_group(..., class = NULL, aria_label = NULL)

Arguments

Argument Description
... Tag attributes and extra content, placed after the other parts.
title String or tag. The title.
description String or tag. Text under the title.
media Tag or NULL. An icon or image shown before the text.
actions Tag or NULL. A control or indicator shown at the end.
href String. A link URL. When set, the item is a link.
variant String. One of default, outline, muted.
size String. One of default, sm, xs.
role String. The item's role. Use "listitem" inside bc_item_group().
class String. Extra CSS classes for the group.
aria_label String. Accessible name for the group.

Value

An htmltools tag.

Details

Use bc_field() for form controls. bc_item() is for content and navigation.

Examples

bc_item(
  title = "Basic Item",
  description = "A simple item with title and description.",
  actions = bc_button("Action", variant = "outline", size = "sm"),
  variant = "outline"
)

Basic Item

A simple item with title and description.


bc_item(
  title = "Visit our documentation",
  description = "Get started.",
  href = "#"
)

Visit our documentation

Get started.


bc_item_group(
  bc_item(title = "Playground", role = "listitem"),
  bc_item(title = "Models", role = "listitem")
)

Playground

Models