Import
- Vue 3
- Vue 2
- React
- Svelte
Usage
- Vue
- React
- Svelte
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
| State | Appearance |
|---|---|
| No artifacts | Muted icon, no badge |
| Has artifacts (panel closed) | Primary color icon, badge with count, pulse animation |
| Has artifacts (panel open) | Active background, primary color |
Custom Toggle
If you need a custom toggle button, use theuseArtifactuse hook/composable:
- Vue
- React
- Svelte