Xzero UI
Pro library

Ink fluidPro

A real time fluid simulation behind your hero: the cursor stirs soft ink that swirls, settles and fades; calm when left alone.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/ink-fluid
Live · keyboard ready

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/ink-fluid

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { InkFluid } from "@/components/xzero/ink-fluid/ink-fluid";

export function Hero() {
  return (
    <InkFluid className="hero">
      <h1>Ship interfaces that feel alive</h1>
      <p>Components with motion that explains every change.</p>
    </InkFluid>
  );
}

API reference

InkFluid

A real time stable fluids simulation behind your content. The pointer stirs soft ink tinted with the accent colour, which settles to neutral as it spreads; left alone a slow, calm stir keeps it alive.

PropTypeDefaultDescription
childrenReactNode–Content drawn above the ink, such as a hero heading and actions.
intensitynumber0.5How dark the ink gets, from 0 to 1.
tintnumber0.8How much fresh ink takes --accent, from 0 to 1. The tinted share hands itself to the neutral share as it spreads.
forcenumber0.5How hard the pointer stirs, from 0 to 1.
ambientbooleantrueA slow stir while nobody interacts, starting 1.2s after the last pointer move.
interactivebooleantrueLets the pointer stir the ink.
quality"low" | "medium" | "high""medium"Simulation grid (96, 128 or 192 cells on the short side) and ink texture resolution.
classNamestring–Extra class on the root. Give it a size, a background and a radius.
styleCSSProperties–Inline styles on the root.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Also in cursor

Guidance for AI tools

Ink fluid: A real time fluid simulation behind your hero: the cursor stirs soft ink that swirls, settles and fades; calm when left alone. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components