Controls
Glass Input
Glass text input with label and hint affordances.
Preview
Release demos ready. Update 0.
Installation
First add the exact @glassyui mapping to components.json as shown in Getting Started. Then run the pinned item command:
pnpm dlx [email protected] add @glassyui/glass-inputDirect registry declarations
These values belong to @glassyui/glass-input itself in registry.json.
Package dependencies
clsx
Registry dependencies
@glassyui/glass-provider
File targets
components/glassyui/glass-input.tsx
Complete installed closure
This follows every namespaced registry dependency recursively and de-duplicates the packages and target files installed with this item.
Package dependencies
clsx
Installed files
components/glassyui/glass-input.tsxcomponents/glassyui/glass-provider.tsxcomponents/glassyui/liquid-filters.tsxcomponents/glassyui/lib/preferences.tscomponents/glassyui/styles/liquid.css
Usage
import { GlassInput } from "@/components/glassyui/glass-input";
export function InputDemo() {
return <GlassInput label="Project" placeholder="Glassy UI" hint="Visible over glass." />;
}Examples
<GlassInput
type="email"
label="Email"
placeholder="[email protected]"
hint="Used for registry updates."
/>API
GlassInputForward-ref native input with optional label and hint.
GlassInputPropsNative input props plus label and hint options.
labelOptional visible label rendered above the input.
hintOptional helper text rendered below the input.
typeNative input type. Defaults to text.
Notes
Accessibility
Keep the Radix-backed semantics intact and preserve visible labels, focus states, and keyboard operation when copying the source.
Performance
Use provider quality preferences for dense app screens. Reserve strong refraction for hero or showcase surfaces.