Skip to content
프로젝트

소개

React용 오픈 소스 글래스 컨트롤입니다. 모든 버튼, 스위치, 슬라이더가 스프링 물리 효과를 적용한 굴절 WebGL 렌즈로 구현됩니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+66
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Liquid Glass UI

Docs: https://liquidglass.onemorethink.dev · Türkçe · For AI: llms.txt

Glass components for React, drawn in WebGL2, with behaviour from UI SDK. Each is named for the one thing it does: press, merge, travel, flow, drag, hold. Copy a file, get exactly what the demo shows. MIT.

Install

npx shadcn@latest add https://liquidglass.onemorethink.dev/r/liquid-glass.json

or copy src/components/liquid-glass/ into your project as components/liquid-glass/. Requirements: React 19, Tailwind CSS v4, an @/ alias.

import { GlassButton } from '@/components/liquid-glass'

<GlassButton>Get started</GlassButton>
<GlassButton material="tinted" className="bg-sky-500 text-white">Save</GlassButton>
<GlassButton asChild><Link href="/docs">Read the docs</Link></GlassButton>

The set

One verb each. Nothing overlaps, so picking one takes a second.

Verb Component What it does
Press GlassButton Clear or tinted glass button that swells under the pointer. asChild puts it on your own <Link>. Needs @ui-sdk/core and @ui-sdk/react.
Merge GlassActionButton Async action button: its arrow is a separate droplet that melts into the body when pressed and stays merged through Deploying… → Deployed ✓. The kit's only gooey effect.
Travel GlassTabs Segmented control whose selection travels as a lens. Ships GlassLens for your own Radix Tabs. Needs @ui-sdk/core and @ui-sdk/react.
Flow GlassBadge One-word badge with its text flowing through the glass.
Drag GlassSlideToConfirm Slide-to-confirm track: drag the glass thumb to the end to run one deliberate action (Sending… → Sent ✓); let go early and it springs back.
Hold GlassCard A frosted glass card that holds your content while its rim bends what slides behind. live for moving backdrops.
Share GlassButtonGroup Related actions in one body of glass, side by side or stacked, with separators and text. The whole body swells under the pointer. A toolbar: one tab stop, arrow keys between its items. Needs @ui-sdk/core and @ui-sdk/react.
Open GlassDropdownMenu Menu of actions that swells out of its button, or out of a whole GlassButtonGroup, as one body of glass. Needs @ui-sdk/core and @ui-sdk/react.
Unfold GlassPopover Small surface its button unfolds into, right where the button is. Needs @ui-sdk/core and @ui-sdk/react.
Grow GlassMenu Menu its button grows into, on any side, with submenus, checkbox and radio items, groups and shortcuts. Needs @ui-sdk/core and @ui-sdk/react.
Rise GlassDialog Pane of frosted glass that rises over the whole page while the page dims and waits. Forms, inline for a frame, a controller to open it from anywhere, alert for a question that must be answered. Needs @ui-sdk/core and @ui-sdk/react.
Part GlassAccordion Block of glass tiles that part to let one open: the tile steps away, its corners round, and its height springs open a little past its size while the answer clears from a blur. One or several open. Needs @ui-sdk/core and @ui-sdk/react.
Arrive GlassToaster Toasts of frosted glass. The page leans in towards the place where one is about to stand, it comes up out of it, and a ripple runs out as the page lets go. They pile up behind the newest; a press opens the pile into a list under a header of glass buttons that shows less or clears it, and each is swiped away. toast() from anywhere, types, promises, actions. Needs @ui-sdk/core and @ui-sdk/react.
Turn sweepPage A whole page that turns behind a band of colour: the page leans in towards where the band will come from while the work runs and is struck as the band leaves, and the next page is there behind it. You choose where the band comes from and its four colours. A function, not a component; no packages.
Slide RangeSlider Range slider whose glass pill opens into a wide lens that bends the track while it is held. Needs three, @ui-sdk/core and @ui-sdk/react.
Flip Switch On/off switch whose knob swells into clear glass as it crosses the track. Needs three, @ui-sdk/core and @ui-sdk/react.
Tick Checkbox Checkbox under a cap of clear glass, at rest too. Needs three, @ui-sdk/core and @ui-sdk/react.
Find GlassSearch Search field that looks in several layers at once: left empty, its layers bud off its end as droplets; typed in, it grows down into its results. Needs @ui-sdk/core and @ui-sdk/react.
Stretch GlassSelect Select whose list swells out of its button as one body of glass, on a neck that stretches and snaps. Ships GlassPopup for your own menu or popover. Needs @ui-sdk/core and @ui-sdk/react.

No npm dependencies, except the components marked "Needs …". Every component has its own docs page with live examples, the exact demo source, "use it for / not for", props and an install command.

AI assistants

Point your assistant at llms.txt, or install the skill:

npx skills add bilalgursen/liquid-glass

The skill (skills/liquid-glass/) tells agents which component to use, how to install it, and to copy files verbatim instead of re-implementing the glass.

Develop

pnpm install
pnpm dev     # Vite dev server
pnpm build   # prerenders every page in English and Turkish, generates llms.txt, Markdown and the registry

See AGENTS.md for the repo layout and rules. Deploys to Cloudflare Pages (.output/public).

Sponsors

Liquid Glass is free and MIT licensed, built and maintained by one person. Sponsors pay for the time that goes into new components, fixes and the docs.

Become a sponsor · Where your logo appears

License

MIT — see LICENSE.

관련 프로젝트 살펴보기

불러오는 중…