inkpaperui-utils
v0.1.0
Published
Optional, dependency-free JS helpers for inkpaperUI: toasts, tabs, dropdowns, light-dismiss dialogs, slider fill, quantity steppers, number rolls, cooldowns and timers.
Readme
inkpaperui-utils
Optional, dependency-free helpers for inkpaperui-css. Components need no script; these drive the few effects that do. Tree-shakeable ESM, any framework. Sister to gamifiedui-utils.
npm i inkpaperui-utilsimport { toast, tabs, quantity } from 'inkpaperui-utils';| Helper | What it does |
| --- | --- |
| toast | Adds a toast to the stack |
| tabs | Wires a tablist |
| dropdowns | Wires details dropdowns |
| lightDismiss | Closes dialogs on outside click |
| sliderFill | Keeps the range fill in sync |
| quantity | Wires a − N + stepper |
| rollNumber | Steps a number to its new value |
| cooldown | Runs a skill cooldown sweep |
| timer / formatDuration | Countdown or stopwatch |
| prefersReducedMotion | Motion preference helper |
Every helper honours prefers-reduced-motion.
Licence
Apache License 2.0. See NOTICE.
