Clay Morphism Button
A premium, modern Claymorphism button with soft 3D extrusion, inner highlights, and bubbly tactile interactions.
uiNew Releaseframer-motionlucide-react
Installation
$npx futureuikit add clay-morph-button
Import
import { ClayMorphButton } from "@/components/ui/clay-morph-button"
Layout Variant
Color Theme
Shape
Spacing / Size
Named Keys & Props
Pass these exact named keys as props on <ClayMorphButton />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)variantVisual style"primary""ghost""outline""soft""elevated""gradient""glass"shapeCorner shape"default""square""rounded""sharp""cut-two""cut-all"spacingInner spacing"default""2x""4x""6x""8x"Usage Example
A basic implementation example to get you started.
Example Implementation
import { ClayMorphButton } from "@/components/ui/clay-morph-button";
import { Sparkles } from "lucide-react";
export default function Example() {
return (
<ClayMorphButton
variant="soft"
color="violet"
shape="rounded"
icon={<Sparkles className="w-4 h-4" />}
>
Modern Clay
</ClayMorphButton>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Soft extruded 3D appearance with layered highlights.
- ◆Tactile interaction: physical press compression.
- ◆Modern Neumorphism 2.0 aesthetics.
- ◆Multiple variants: Glass, Gradient, Soft, Elevated.
- ◆Built-in color presets with automatic state generation.
- ◆Premium Framer Motion animations (spring-based).
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run 'npx futureuikit add clay-morph-button'.
- ◆Import: 'import { ClayMorphButton } from "@/components/ui/clay-morph-button";'
- ◆Props: Supports variant, color, size, shape, loading, icon, elevation, and glow.
- ◆Interaction: Framer Motion provides the soft 3D compression effect.