Flip Button
A 3D flip button that reveals alternate content on the back face.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { ButtonWithFlip } from '@/components/component-kit/items/button-with-flip';
export function Example() { return ( <ButtonWithFlip backContent="Let’s go" trigger="click">Flip the script</ButtonWithFlip> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "default" | "lg" | default | Pill height: 28, 32 or 36px. |
backContent | ReactNode | — | Content on the back face. |
trigger | "click" | "hover-focus" | click | Choose how the button flips. |