Controls
Glass Input
A recessed glass text field with a label and an optional hint.
pnpm dlx shadcn@4.14.1 add @glassyui/glass-inputnpx shadcn@4.14.1 add @glassyui-native/glass-inputPreview
Demos ready. Update 0.
This preview runs the React version. In an app, iOS 26 and later draw the React Native version with the system’s own Liquid Glass. See it on a phone.
Installation
First add the exact @glassyui mapping to components.json as shown in Getting Started. Then run the pinned item command:
pnpm dlx shadcn@4.14.1 add @glassyui/glass-inputWhat this installs5 files, 1 package
Direct 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
First add the @glassyui-native mapping to components.json as shown in the Expo guide. Then add the component and match its packages to your Expo SDK:
npx shadcn@4.14.1 add @glassyui-native/glass-inputnpx expo install --fixUsage
import { GlassInput } from "@/components/glassyui/glass-input";
export function InputDemo() {
return <GlassInput label="Project" placeholder="Glassy UI" hint="Visible over glass." />;
}import { useState } from 'react';
import { GlassInput } from '@/components/glassyui/glass-input';
export default function InputExample() {
const [email, setEmail] = useState('');
return (
<GlassInput
autoCapitalize="none"
hint="We only use it to reply."
keyboardType="email-address"
label="Email"
onChangeText={setEmail}
placeholder="you@example.com"
value={email}
/>
);
}
Examples
<GlassInput
type="email"
label="Email"
placeholder="alex@example.com"
hint="Used for registry updates."
/>API
The React Native version takes the same props under React Native’s names: onPress for onClick and style for className. The Expo guide lists what else differs.
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.