States
VERSION2.3.0
LICENSEMIT
CONFIG3 Options
Logic controller that enables/disables other plugins based on hover attributes.
Installation
pnpm add @supermousejs/statesUsage
app.use(States({ default: ['dot'], states: { 'hover': ['ring'] } }));Configuration
| Option | Type | Default | Description |
|---|---|---|---|
| default | string[] | [] | List of plugin names active by default. |
| states | Record<string, string[]> | {} | Map of state names to lists of active plugins. |
| attribute | string | 'data-supermouse-state' | DOM attribute to trigger state changes. |