Loading…
← All components

Buttons · Button

Kinetic Tactile Button

A polished metal key that turns toward the pointer on an elastic spring, sinks along Z with a haptic rebound, with an iridescent light running around its border.

<KineticTactileButton3D />Live

Customize

Border light#a78bfa
Metal#1a1724

Installation

Use it in your project

Or skip the copy-paste

One command: writes the file and installs the dependencies.

$ npx deepui-cli add kinetic-tactile-button

Pro component: run npx deepui-cli login first with a token from your library.

01

Install

The 3D packages this component is built on.

$ npm install three @react-three/fiber @react-three/drei && npm install -D @types/three
02

Add the component

One self-contained file: create components/KineticTactileButton3D.tsx and paste it in.

03

Drop it in a page

Updated live with the settings above.

app/page.tsx
1import KineticTactileButton3D from "@/components/KineticTactileButton3D";
2
3export default function Section() {
4 return (
5 // The component fills this box: give it a position and a height
6 <div style={{ position: "relative", width: "100%", height: "240px" }}>
7 <KineticTactileButton3D
8 label="Start building"
9 depthZ={16}
10 elasticStiffness={220}
11 magneticReach={160}
12 label3DExtrusion={4}
13 emissiveColor="#a78bfa"
14 primaryColor="#1a1724"
15 borderIridescence
16 onClick={() => console.log('pressed')}
17 />
18 </div>
19 );
20}
Next componentGravitational Audio Visualizer→