ButtonsProNew

Tilt Push Button

A button in perspective like a key: it tips back further on hover and sinks on press, with a soft shadow below.

Customize

from
to
textColor

Based on hot-catfish-48 by adamgiebl (MIT license) · Terms of use

Props

7 properties
PropertyTypeDefaultDescription
childrenReactNode"Click me"Button label.
fromstring"#fafafa"Top color of the face.
tostring"#d4d4d4"Bottom color of the face; it also tints the shadow.
textColorstring"#0a0a0a"Label color.
tiltnumber15Tilt at rest in degrees. Hover and press tilt further.
fontSizenumber16Label size in pixels.
classNamestring—Classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all