@fluidkit/react
v2.0.0
Published
Fluid Kit for React: Liquid Blur's glass, morph, indicator, drag, lift and layout as components and hooks, on interruptible springs that keep their speed.
Maintainers
Readme
@fluidkit/react
Fluid Kit for React: Liquid Blur's glass, morph, indicator, drag,
lift and layout as components and hooks, on interruptible springs that keep their speed. Each part
can render as your own element with render. It has all of
@fluidkit/core too, so it's the one package to
install. React 18+.
npm install @fluidkit/reactimport "@fluidkit/react/style.css";
import { Layout, Lift, springs, transitions } from "@fluidkit/react";
<Layout.Root render={<ul className="list" />} spring={springs.snappy()} enter={transitions.blurReplace()}>
{rows.map((row) => (
<li key={row.id}>{row.title}</li>
))}
</Layout.Root>
<Lift.Root onSelect={(value) => act(value)}>
<Lift.Target render={<img src={src} alt="" />} />
<Lift.Menu className="menu lb">
<Lift.Item value="copy">Copy</Lift.Item>
<Lift.Item value="share">Share</Lift.Item>
</Lift.Menu>
</Lift.Root>Every feature, its parts and its hook are in the documentation, with React chosen.
License
MIT © Mikhail Mogilnikov. See LICENSE.
