Skip to content

API Reference

Liqvued Component

The <Liqvued> component wraps content in a liquid glass effect using SVG filter primitives. It accepts the following props:

Props

PropTypeDefaultDescription
asstring | Component'div'HTML tag or Vue component to render as
asPropsobject{}Props passed to the rendered element/component
radiusnumber32Corner radius in pixels
bezelnumber22Width of the displacement bezel in pixels
thicknessnumber42Maximum displacement magnitude in pixels
refractionnumber1Refraction index multiplier
blurnumber0.4CSS backdrop-filter blur amount
surfaceSurface'convex'Glass surface profile shape
specularOpacitynumber0.45Opacity of the specular highlight
glareAnglenumber-60Light source angle in degrees for specular highlight
glassBackgroundstringGlass panel background color (auto-derived from asProps.color when available)

Slots

The component provides a single default slot:

vue
<Liqvued>
  <p>Content rendered on the glass surface</p>
</Liqvued>

Types

The Surface type is exported from the package:

ts
import type { Surface } from 'liqvued'
ts
type Surface = 'convex' | 'concave' | 'lip'

Surface Types

TypeDescription
convexSquircle convex profile — soft pill-like edges. Default.
concaveInverted convex profile — inward-curving dish-like refraction.
lipSmooth transition from convex at center to concave at edge — S-curve profile.

MIT Licensed