@raex-ui/flip-dot
v0.1.1
Published
Cascading dot-flip grid that simulates a physical flip-dot display. Animated digit transition component for React.
Maintainers
Readme
@raex-ui/flip-dot
A cascading dot-flip grid that simulates a physical flip-dot display. Dots flip with spring physics in a diagonal cascade pattern.
Install
npm install @raex-ui/flip-dotUsage
import { FlipDot } from "@raex-ui/flip-dot";
function MyComponent() {
const [digit, setDigit] = useState(0);
return <FlipDot 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
