@liquefy-ui/react
v0.2.0
Published
Accessible React components with transparent Liquid Glass optics and tactile WebGL motion.
Maintainers
Readme
@liquefy-ui/react
React components that combine highly transparent Liquid Glass with accessible interaction behavior.
import { LiquefyProvider, LiquidButton } from '@liquefy-ui/react'
import { ArrowRightIcon } from '@liquefy-ui/icons'
import '@liquefy-ui/react/styles.css'
<LiquefyProvider theme="system" tint="#8f8f8f" intensity={0.72}>
<LiquidButton iconAfter={<ArrowRightIcon />} size="lg">Continue</LiquidButton>
</LiquefyProvider>There is no variant prop on LiquidButton: hierarchy comes from size, tint and
placement, and anything else goes through the styles prop below.
React 18.2 and newer are supported. Disable WebGL per component with webgl={false} or across a subtree through the provider. The theme prop accepts dark, light, or system.
Every component also takes a token-aware styles prop:
<LiquidButton styles={{ p: 3, color: 'accent', w: { base: '100%', md: 240 }, _hover: { bg: '$glass-soft' } }}>
Continue
</LiquidButton>Spacing keys count --lq-space units, $token resolves to var(--lq-token), and
state keys (_hover, _dark, …) plus breakpoint objects compile to a class that
sits outside the liquefy-ui cascade layer. See the root README for the full table.
