@raex-ui/thread-unravel
v0.1.1
Published
Single continuous stroke path that unravels and restitches to form each digit. Animated digit transition component for React.
Maintainers
Readme
@raex-ui/thread-unravel
A single continuous stroke path that unravels and restitches to form each digit. Uses SVG stroke-dashoffset animation for a hand-drawn effect.
Install
npm install @raex-ui/thread-unravelUsage
import { ThreadUnravel } from "@raex-ui/thread-unravel";
function MyComponent() {
const [digit, setDigit] = useState(0);
return <ThreadUnravel value={digit} size={64} />;
}Props
| Prop | Type | Description |
|------|------|-------------|
| value | number | Digit to display (0–9) |
| size | number | Width in pixels. Height is automatically 1.5× width. |
Peer Dependencies
react>=18react-dom>=18framer-motion>=10
No Tailwind CSS required.
License
MIT
