Skip to contents

Generated wrapper for the Web Awesome wa-badge component. Generated from Web Awesome metadata.

Usage

wa_badge(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  appearance = NULL,
  attention = NULL,
  dir = NULL,
  lang = NULL,
  pill = NULL,
  variant = NULL,
  end = NULL,
  start = NULL
)

Arguments

...

Child content for the component's default slot.

id

Optional DOM id attribute for HTML, CSS, and JS targeting.

class

Optional CSS class string.

style

Optional inline CSS style string.

appearance

Enumerated string. Allowed values: accent, filled, filled-outlined, outlined. Default: accent. The badge's visual appearance.

attention

Enumerated string. Allowed values: bounce, none, pulse. Default: none. Adds an animation to draw attention to the badge.

dir

String. Optional Web Awesome attribute.

lang

String. Optional Web Awesome attribute.

pill

Boolean. Default: FALSE. Draws a pill-style badge with rounded edges.

variant

Enumerated string. Allowed values: brand, danger, neutral, success, warning. Default: brand. The badge's theme variant. Defaults to brand if not within another element with a variant.

end

An element, such as <wa-icon>, placed after the label.

start

An element, such as <wa-icon>, placed before the label.

Value

An HTML tag for the component.

Shiny Bindings

None.