moekoelueker

Liquid Glass Button

Buttons

About

A pill-shaped glass button with primary, secondary, quiet and danger variants that catches a pointer-tracked light highlight, from the OpenGlass UI liquid-glass design system.

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

Code

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

Usage.tsx

import Button from "@/components/ui/segmented-control";

export default function ButtonDemo() {
  return (
    <div
      data-ogui-design="liquid"
      className="flex h-screen w-full flex-wrap items-center justify-center gap-4 p-10"
      style={{ background: "linear-gradient(160deg, #1b1f2a, #0a0c10)" }}
    >
      <Button variant="primary">Create project</Button>
      <Button variant="secondary">Secondary</Button>
      <Button variant="quiet">Quiet</Button>
      <Button variant="danger">Delete</Button>
    </div>
  );
}

More by moekoelueker

View all
  • Liquid Glass Tabs

    Liquid Glass Tabs

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