Components · Motion
Float
BetaAdded v3.1.0
Gently bobs its content (floating cards over a hero visual), in marketing mode. Server component; still under reduced motion.
import { Float } from '@nexub/react';Playground
Props
speed
Payroll approved
<Float>…</Float>Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| speed | 'normal' | 'slow' | 'normal' | slow drifts on a longer, reversed loop, so two floating cards don’t move in step. |
| asChild | boolean | false | Merge onto the child element instead of a div. |
On iOS & Android
Web only
Float has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.