Installation
Usage
import { MagneticButton } from "@/components/pioneerui/magnetic-button"
export default function CTA() {
return (
<MagneticButton strength={0.4}>
Get started
</MagneticButton>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
strength | number | 0.4 | Magnetic pull strength (0–1) |
radius | number | 150 | Detection radius in pixels |
children | React.ReactNode | undefined | Button content |
className | string | undefined | Additional CSS classes |