Ecosystem /@supermousejs/states

States

VERSION2.3.0
LICENSEMIT
CONFIG3 Options

Logic controller that enables/disables other plugins based on hover attributes.

Installation

pnpm add @supermousejs/states

Usage

app.use(States({ default: ['dot'], states: { 'hover': ['ring'] } }));

Configuration

OptionTypeDefaultDescription
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.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.