Component
Glass Input
A chatbot prototype showcasing a floating glass composer island. Features the glass-player's frosted material recipe — backdrop-blur(40px), inset white glow, semi-transparent borders — with scrollable chat messages, typing indicator, and interactive send flow.
glassinputchatbotcomposerheroui
V
Can you help me design a glass-style input component?
Of course! For a glass-style input, we want to focus on a few key properties:
• backdrop-filter: blur(40px) for the frosted effect
• Semi-transparent white background (~60% opacity)
• Subtle inset white glow for depth
• Soft outer shadow for elevation
The key is making the blur strong enough to feel like real frosted glass while keeping the border subtle.
V
What about the focus state? Should it glow?
Yes! A focus glow adds a nice touch. I'd recommend a soft blue ring — something like `0 0 0 3px rgba(0,122,255,0.15)` — combined with slightly increasing the background opacity from 0.6 to 0.72. This creates a subtle "brightening" effect that feels natural on glass.
V
How do I make the icons look right inside the glass input?
For icons inside glass inputs, use a muted color like rgba(60,60,67,0.4) and transition to rgba(60,60,67,0.6) on focus. Bold/filled icon styles work better than thin strokes — they maintain visual weight against the blurred background. Keep them at 18-20px for comfortable touch targets.
V
What's the difference between the pill shape and rounded rectangle?
Pill shapes (border-radius: 9999px) work great for search bars and chat inputs — they feel more casual and approachable. Rounded rectangles (border-radius: 12px) are better for form fields where you need labels and structured layouts. Both can use the same glass recipe underneath.
V
Can you show me the complete glass recipe?
Here's the full glass recipe from the player component:
• background: rgba(255,255,255,0.6)
• backdrop-filter: blur(40px)
• border: 1px solid rgba(255,255,255,0.2)
• box-shadow: 0 4px 12.5px rgba(0,0,0,0.08), inset 0 0 4px rgba(255,255,255,0.9)
The inset white glow is the secret sauce — it simulates light catching the edge of real glass. Combined with the strong blur, it creates a convincing frosted material.