Basic Item
A simple item with title and description.
Create a row of content with an optional icon, text, and actions.
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)
| 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. |
An htmltools tag.
Use bc_field() for form controls. bc_item() is for content and navigation.
bc_item(
title = "Basic Item",
description = "A simple item with title and description.",
actions = bc_button("Action", variant = "outline", size = "sm"),
variant = "outline"
)
A simple item with title and description.
bc_item(
title = "Visit our documentation",
description = "Get started.",
href = "#"
)
Get started.
bc_item_group(
bc_item(title = "Playground", role = "listitem"),
bc_item(title = "Models", role = "listitem")
)