Components · 2 min read
DotFlow
Compound component for creating multi-item flowing animations
DotFlow
The DotFlow component combines DotMatrix with ScrambleText to create flowing, multi-item animations with automatic rotation.
Basic Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items* | DotFlowItem[] | - | Array of items with title and frames |
activeIndex | number | - | Controlled active index |
autoPlay | number | - | Auto-rotate interval in milliseconds |
direction | 'horizontal' | 'vertical' | 'horizontal' | Layout direction |
spacing | number | 16 | Gap between matrix and text |
matrix | DotMatrixConfig | - | Configuration for the DotMatrix component |
scramble | ScrambleTextConfig | - | Configuration for the ScrambleText component |
textSize | number | string | 16 | Text font size |
textColor | string | - | Text color |
textWeight | number | string | 500 | Text font weight |
onChange | (index: number) => void | - | Callback when active index changes |