ham7a311

Stitch Button

Buttons

About

A fabric-styled button with an animated running-stitch border that pulls tight on hover and puckers when pressed, available in leather or denim finishes.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stitch Button to your project and fits it to your theme.

Code

How Stitch Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import StitchButton from "@/components/ui/stitch-button";
import * as React from "react";

export default function Demo() {
  const [n, setN] = React.useState(0);
  return (
    <div className="flex min-h-full w-full items-center justify-center p-8 bg-[#efe6d8]">
      <div className="flex flex-col items-center gap-4 text-center">
        <p className="font-mono text-[0.6875rem] uppercase tracking-[0.16em] text-[#6f6458]">
          Card wallet · Hand-stitched sample
        </p>
        <p className="text-[2rem] leading-none text-[#2b231c]">OMR 18.500</p>
        <StitchButton material="leather" onClick={() => setN((x) => x + 1)}>
          {n ? `In your basket · ${n}` : "Add to basket"}
        </StitchButton>
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    185
  • Route Globe

    Route Globe

    154
  • Glass Tiles

    Glass Tiles

    146
  • Glyph Swell

    Glyph Swell

    60
  • Orbit Ring Stats

    Orbit Ring Stats

    57
  • Ask Bar

    Ask Bar

    46
  • Intent Label

    Intent Label

    39
  • Glass Ribbons

    Glass Ribbons

    37

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1