Dialogs and help · component · 7K

Help balloons

Show Balloons / Hide Balloons: a provider with a persisted on/off switch, a menu item to toggle it and speech balloons on hover or focus that are always linked with aria-describedby.

Wrap the app in HelpBalloonsProvider, put HelpBalloonsToggle in a menu (as={DropdownMenuItem} or as={ContextMenuItem} outside the menu bar) and wrap focusable elements in <Balloon content="…">. Off by default; the choice is kept in localStorage under s7ui:help-balloons.

Install

pnpm dlx shadcn@latest add @s7ui/help-balloons

Example

This example also uses @s7ui/alert-icons @s7ui/button @s7ui/dropdown-menu @s7ui/menubar.

Balloons are off.

Read more

Info

Files:
components/retro/help-balloons.tsx
Uses:
@s7ui/theme, @s7ui/menubar, @s7ui/tooltip
Packages:
—