fluxglass
v0.0.1
Published
Production-grade liquid-glass rendering system for the web. Umbrella package for the Fluxglass ecosystem.
Maintainers
Readme
fluxglass
Framework-neutral convenience exports for Fluxglass. This package combines the pure public API
from @fluxglass/core with the vanilla browser controller from @fluxglass/dom.
import { createFluxglass } from 'fluxglass';
const element = document.querySelector<HTMLElement>('[data-surface]');
if (!element) throw new Error('Missing surface');
const controller = createFluxglass(element, {
renderer: 'auto',
width: 180,
height: 112,
});width and height accept CSS pixels, CSS lengths such as "100%", or "auto" for stylesheet
control of [data-fluxglass-overlay].
Import @fluxglass/react separately when using React. The umbrella package deliberately has no
framework dependency.
