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

    216
  • Route Globe

    Route Globe

    171
  • Glass Tiles

    Glass Tiles

    159
  • Orbit Ring Stats

    Orbit Ring Stats

    71
  • Glyph Swell

    Glyph Swell

    66
  • Fan Deck Card

    Fan Deck Card

    54
  • Ask Bar

    Ask Bar

    52
  • Glass Ribbons

    Glass Ribbons

    46

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113