←BackInstall Usage Props
FlipDot
A cascading dot-flip grid that simulates a physical flip-dot display. Dots flip with spring physics in a diagonal cascade pattern.
GitHubnpm install animated-digit-transitionsimport { FlipDot } from "animated-digit-transitions";
export function MyComponent() {
const [digit, setDigit] = useState(0);
return <FlipDot value={digit} size={64} />;
}| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Digit to display (0-9) |
| size | number | 64 | Width in pixels. Height is 1.5x width. |