ds_badge_position: Badge Position Wrapper

View source: R/ds-misc.R

ds_badge_positionR Documentation

Badge Position Wrapper

Description

Wraps an element so that a ds_badge() can be positioned on top of it.

Usage

ds_badge_position(..., placement = "top-right", overlap = NULL, class = NULL)

Arguments

...

The target element followed by a ds_badge().

placement

Badge placement: "top-right" (default), "top-left", "bottom-right", "bottom-left".

overlap

Set to "circle" when the target is a circular avatar.

class

Additional CSS classes.

Value

A Shiny tag object

Examples

ds_badge_position(
  ds_button("Inbox"),
  ds_badge(count = 3, color = "danger"),
  placement = "top-right"
)

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.