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

    137
  • Route Globe

    Route Globe

    125
  • Glass Tiles

    Glass Tiles

    109
  • Glyph Swell

    Glyph Swell

    50
  • Orbit Ring Stats

    Orbit Ring Stats

    47
  • Ask Bar

    Ask Bar

    38
  • Glass Ribbons

    Glass Ribbons

    30
  • Intent Label

    Intent Label

    29

More in Buttons

View all
  • App Store Button

    App Store Button

    471
  • Texture Button

    Texture Button

    101
  • Button

    Button

    14
  • Button

    Button

    8
  • Button

    Button

    75
  • Button Group

    Button Group

  • Button

    Button

    66
  • Native Button

    Native Button

    7