v2.0.0
Backdrop aware

Static demonstration

Frosted glass effect

Blur, tint, and saturation only read clearly when the surface sits over layered color and detail.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Glass } from '@dryui/ui';
</script>

<Glass>Content</Glass>

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.