Glass Input

A text input field with glass surface treatments.

import { GlassInput } from "@/components/ui/glasscn/glass-input"

export function InputDemo() {
  return (

Installation

$ npx shadcn add @glasscn/glass-input

Variants

clear
frosted
subtle
liquid
liquid-refract

API

Prop
Type
Default
Description
GlassInputglassVariant
"clear" | "frosted" | "subtle" | "liquid" | "liquid-refract""clear"
Controls the glass surface treatment.
GlassInput...props
React.ComponentProps<typeof Input>-
Props from the underlying shadcn/ui primitive.