Back to elements
Element•Premium

Soft Press Button

A glossy textured cushion with pointer-driven vertical creases and a deep recessed press.

Customize

Overview

About the Soft Press Button

A glossy textured cushion with pointer-driven vertical creases and a deep recessed press. It is delivered as editable TypeScript for React. Instance-scoped CSS; no Tailwind or animation dependencies. Its focused API can be adapted to your own content and visual system.

Usage

When to use it

  • Tactile calls to action and expressive contact buttons.

What’s included

Files in the product ZIP

Soft Press Button source

components/soft-press-button.tsx

Editable React and TypeScript component source.

Working example

examples/example.tsx

A minimal import and render example that matches the packaged API.

Installation guide

README.md

Manual ZIP installation, styling, compatibility, asset, and usage notes.

Usage

Import and render

Copy the packaged source to the documented path, then use the public API shown below.

Import
import { SoftPressButton } from "@/components/soft-press-button";
Minimum example
<SoftPressButton text="Contact" foldIntensity={1} pressDepth={12} />

Props

Component API

PropTypeDefaultDescription
textstringContactButton label.
textColorstring#e4d3b2Text and arrow color.
widthnumber340Width, 140–700px, constrained by parent.
heightnumber104Height, 60–180px.
foldIntensitynumber1Crease strength, 0–2.
pressDepthnumber12Depression depth, 0–24.
textureSrcstringEmbedded textile imageOptional replacement material image URL. Copy soft-press-material.ts alongside the component.
showArrowbooleantrueDecorative arrow visibility.
...buttonPropsButtonHTMLAttributes<HTMLButtonElement>—Native events, disabled, children, className, style and accessibility attributes.

Compatibility

Verified project setup

  • ReactLoom's preview is tested with Next.js 16.3.8 App Router, React 19.2.8, TypeScript 5.9.3, and Tailwind CSS 4.3.3. This describes the store environment, not the product's minimum requirements.
  • This interactive component includes the "use client" directive and must remain behind a Client Component boundary in the Next.js App Router.
  • Instance-scoped CSS; no Tailwind or animation dependencies.
Images
No image files are included or required by the packaged component.
Fonts
No font files are included. The component uses system font fallbacks unless your app supplies a matching font.

Installation

Add it to your project

Download the Soft Press Button ZIP, place the source file at src/components/soft-press-button.tsx, and copy the example into your own page or feature folder.

Target path

src/components/soft-press-button.tsx

No additional npm runtime packages are required beyond the React host; follow the styling requirements below.

Styling requirements

  • Copy components/soft-press-button.tsx and import SoftPressButton. Keep use client for Next.js App Router.
  • Native button supports keyboard, disabled and click events. Reduced motion disables transitions.
  • Includes an embedded AI-generated padded textile material. Copy soft-press-material.ts with the component; no external image hosting required.