ButtonsProNew

Attract Button

Iron filings lie around the button. Hover it and they turn toward it, like toward a magnet.

Customize

filingColor

Based on Attract Button (MIT license) · Terms of use

Props

7 properties
PropertyTypeDefaultDescription
densitynumber1Filing density. 1 is one every 12 pixels.
radiusnumber64How far the field reaches past the button edges, in pixels.
filingColorstring"rgba(255, 255, 255, 0.55)"Color of the iron filings.
disabledbooleanfalseDisable the button.
childrenReactNode"Get started"Button text.
containerClassNamestring—Classes for the wrapper with the field.
classNamestring—Classes for the button itself.

Dependencies

3 required packages

npm install lucide-react clsx tailwind-merge

Related components

View all