Skip to main content
A button component that toggles the panel visibility and displays a badge with the artifact count. Includes a pulse animation when new artifacts are detected.

Import

Usage

Behavior

The toggle button automatically:
  • Shows artifact count - Badge displays number of detected artifacts
  • Indicates active state - Highlighted when panel is open
  • Pulses on new artifacts - Animated pulse when artifacts are first detected
  • Toggles panel - Click to open/close the panel

States

Custom Toggle

If you need a custom toggle button, use the useArtifactuse hook/composable:

Styling

The default toggle uses these CSS classes:
Override with CSS variables:

Placement

Common placement patterns: