A conversational message surface. Part of the chat/AI kit; usually composed
inside shad_message(), but usable on its own.
Arguments
- ...
Bubble content (text or tags), plus optional named attributes.
- variant
One of
"default","secondary","muted","tinted","outline","ghost"(full-width assistant prose),"destructive".- align
For
shad_bubble_group(), the alignment applied to every child bubble:"start"or"end".- reactions
Optional overlapping reaction chips: a character vector (each becomes a chip) or a tag. Give counts/emoji an
aria-label.- class
Extra CSS classes.
See also
Other shadshiny chat components:
shad_attachment(),
shad_marker(),
shad_message(),
shad_message_spinner()
Examples
shad_bubble("How many rows have missing values?", align = "end")
#> <div class="shad-bubble shad-bubble--default shad-bubble--end">
#> <div class="shad-bubble__content">How many rows have missing values?</div>
#> </div>
shad_bubble("1,284 rows (2.6%).", variant = "muted", align = "start")
#> <div class="shad-bubble shad-bubble--muted shad-bubble--start">
#> <div class="shad-bubble__content">1,284 rows (2.6%).</div>
#> </div>