Glass
Translucent glass wrapper with blur, tint, and saturation control
Frosted glass effect
Blur, tint, and saturation only read clearly when the surface sits over layered color and detail.
Accessibility
- Treat the effect as decorative and keep underlying content understandable without color, blur, or motion alone.
- Respect reduced-motion and contrast requirements when animation or filtering is enabled.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Glass } from '@dryui/ui' Per-component subpath
ts
import { Glass } from '@dryui/ui/glass' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| blur | number | — | 12 | — | — |
| tint | string | — | 'rgba(255 | — | — |
| saturation | number | — | 120 | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |