DocsReferenceClasses and options

Classes, variables and options

Everything you can set, on one page.

1 min readUpdated November 2026Fidgicons 1.0

#Component options

The React, Vue and Svelte components take the same options.

OptionTypeWhat it does
iconstringThe icon module you imported. Required.
valuenumber, 0 to 1Sets the icon. Leave it out for the rest value.
hoverbooleanFidget when this icon is hovered.
movebooleanMotion only on hover.
className / class, styleMerged with the icon's own. Any other attribute is passed through.

To fidget an icon when its button is hovered, leave hover off and put fidg-hover on the button.

#Classes

ClassGoes onWhat it does
fidgthe svgMarks an icon. Already on every icon.
fidg-hovericon or parentFidget on hover and keyboard focus.
fidg-moveicon or parentMotion only, on hover and focus.
is-ona parent with fidg-hoverPlays the fidget now. Remove it after 1.1 s, or the icon keeps its rest value.
fidg-scrubwith fidg-hover is-onHolds the fidget at --t seconds.
fidg-calmany parentStops all motion inside.
fidg-mono, fidg-offset, fidg-chipicon or parentThe other three looks.

#Variables

VariableGoes onWhat it does
--vthe svgThe value, 0 to 1.
--fidg-accentanywhereAccent colour. Default #ffb300.
--fidg-strokeanywhereLine weight. 1.25 Light (default), 1.75 Regular, 2.25 Bold.
--fidg-bganywhereThe colour the icon sits on. Default white.
--fidg-glideanywhereTime to reach a new value. Default .5s.
--fidg-chip, --fidg-chip-inkanywhereTile and ink colours of the Chip look.
--twith fidg-scrubThe moment to hold, in seconds, 0 to 1.1.

#index.json

{ "id": "battery", "name": "Battery", "category": "Interface", "value": "charge", "rest": 1,
  "motion": "pop", "sound": "charge", "free": true }
Something missing or unclear?Write to usRequest an icon