iOS 26 liquid-glass form system — grouped fields, toggles, segmented controls, and action buttons with backdrop blur.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- motion
Code
"use client";
import {
GlassForm,
FormGroup,
FormField,
FormToggle,
FormSegment,
FormButton,
} from "@/registry/ruixenui/glass-form";
export default function GlassFormDemo() {
return (
<div
style={{
display: "flex",
flexDirection: "column",
alignItems: "center",
padding: "48px 16px",
}}
>
<GlassForm onSubmit={() => console.log("submitted")}>
<FormGroup title="Account">
<FormField label="Name" placeholder="John Appleseed" />
<FormField
label="Email"
type="email"
placeholder="john@example.com"
/>
<FormField label="Password" type="password" placeholder="Required" />
</FormGroup>
<FormGroup
title="Preferences"
footer="Choose how you'd like to receive updates."
>
<FormToggle label="Notifications" defaultChecked />
<FormToggle label="Marketing" description="Receive product updates" />
<FormSegment
label="Theme"
options={[
{ label: "Light", value: "light" },
{ label: "Dark", value: "dark" },
{ label: "Auto", value: "auto" },
]}
defaultValue="dark"
/>
</FormGroup>
<FormButton>Create Account</FormButton>
<FormButton variant="text">Already have an account? Sign in</FormButton>
</GlassForm>
</div>
);
}
































