Ecosystem /@supermousejs/labs

SmartIcon

VERSION2.3.0
LICENSEMIT
CONFIG6 Options

Advanced state machine that morphs SVGs based on semantic context.

Installation

pnpm add @supermousejs/labs

Usage

import { SmartIcon } from '@supermousejs/labs';

app.use(SmartIcon({ icons: { ... } }));

Configuration

* Reactive Property
OptionTypeDefaultDescription
icons Record<string, string>{}Map of state names to SVG strings.
size *number24Size of the icon container.
color *string'black'Icon fill color (currentColor).
anchor *string'center'Alignment (center, top-left, etc).
offset [number, number][0, 0]Fixed offset.
transitionDuration number200Morph transition time in ms.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.