moekoelueker

Liquid Glass Button

Component

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

"use client";

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

export default function ViewDensitySegmentedControl() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center bg-[#15161a] p-10">
      <SegmentedControl
        aria-label="View density"
        defaultValue="balanced"
        items={[
          { value: "quiet", label: "Quiet" },
          { value: "balanced", label: "Balanced" },
          { value: "vivid", label: "Vivid" },
        ]}
      />
    </div>
  );
}

More by moekoelueker

View all
  • Liquid Glass Tabs

    Liquid Glass Tabs