jshguo

Interfaces Button

Buttons 8

About

A versatile button component from Interfaces DS with six visual variants and six size combinations per variant.

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

Code

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

Usage.tsx

"use client"

import { Plus } from "lucide-react"

import { Button } from "@/components/ui/interfaces-button"

const sizes = [
  { label: "Ghost · Sm", size: "sm" as const },
  { label: "Ghost · Default", size: "default" as const },
  { label: "Ghost · Lg", size: "lg" as const },
  { label: "Ghost · Icon Sm", size: "icon-sm" as const, icon: true },
  { label: "Ghost · Icon", size: "icon" as const, icon: true },
  { label: "Ghost · Icon Lg", size: "icon-lg" as const, icon: true },
]

export default function ButtonGhostDemo() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center overflow-hidden bg-background p-8">
      <div className="grid w-full max-w-5xl gap-4 sm:grid-cols-2 lg:grid-cols-3">
        {sizes.map((item) => (
          <div
            key={item.label}
            className="flex min-h-36 flex-col rounded-xl border bg-card p-4 shadow-sm"
          >
            <p className="text-xs font-medium text-muted-foreground">{item.label}</p>
            <div className="flex flex-1 items-center justify-center pt-3">
              <Button variant="ghost" size={item.size} aria-label={item.icon ? item.label.toLowerCase() : undefined}>
                {item.icon ? <Plus className="size-4" /> : "Button"}
              </Button>
            </div>
          </div>
        ))}
      </div>
    </div>
  )
}

Dependencies

More by jshguo

View all
  • Progress

    Progress

    432
  • Select

    Select

    378
  • Textarea

    Textarea

    263
  • Input OTP

    Input OTP

    165
  • Interfaces Carousel

    Interfaces Carousel

    165
  • Switch

    Switch

    141
  • Hover Card

    Hover Card

    114
  • Card

    Card

    90

More in Buttons

View all
  • Hero Button

    Hero Button

    21
  • Button

    Button

    141
  • Eclipse Button

    Eclipse Button

    9
  • Button

    Button

    19
  • Texture Button

    Texture Button

    110
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    64
  • HeroUI Toggle Button

    HeroUI Toggle Button

  • Icon Label Subtext Button

    Icon Label Subtext Button

    65