204 Pro components and page blocks

Get Pro

Updated

Chladni Sand

Pro

Preview

Customize

Color
Scale1.00
Density1.00
Energy1.00
Hold6.0s
Grain size1.00
Glow1.00
Fade0.00
Speed1.0
Seed0
Grain0.020
Touch1.00

Installation

Pro

Chladni Sand is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/chladni-sand

Usage

import { ChladniSand } from "@/components/uibrik/chladni-sand/chladni-sand";​<ChladniSand  color="#b8892f"  scale={1}  density={1}  energy={1}  hold={6}  cycle  grainSize={1}  glow={1}  fade={0}  speed={1}  seed={0}  grain={0.02}  animate  interactive  touch={1}  // background="…"  // maxFps={0}>  …</ChladniSand>

Where to use Chladni Sand

  • Audio and music products

    Sand finding the shape of a sound suits synths, podcasts and audio tools.

  • Science and education

    A real Chladni plate makes physics feel tangible on a course or museum page.

    Pairs with Topographic Lines

  • Calm, crafted heroes

    Grains flowing from one figure to the next give a slow, tactile motion.

Props

ChladniSand
color
Type string
"#b8892f"
Colour of the sand; drawn in shades of it.
colors
Type string[]
["#1e1b4b","#4338ca","#a5b4fc","#eef2ff"]
Hex colours, 2 to 6, from the deepest shade to the palest. Overrides color.
scale
Type number
1
Size of the figures; larger shows fewer, bigger shapes.
density
Type number
1
How many grains, relative to about one per 6 css px².
energy
Type number
1
How hard the plate shakes: higher scatters the sand further.
hold
Type number
6
Seconds each figure holds before the next note.
cycle
Type boolean
true
Move to a new figure every hold seconds; off keeps one until a click.
grainSize
Type number
1
Size of a grain.
glow
Type number
1
Soft glow along the densest lines on dark pages.
fade
Type number
0
Fade toward the edges, so content on top reads clearly.
speed
Type number
1
Animation speed; 1 is the designed pace.
seed
Type number
0
Starts from a different scatter of sand and a different first figure.
grain
Type number
0.02
Film grain strength.
animate
Type boolean
true
Move on its own. Off settles the sand into one figure and draws it still.
interactive
Type boolean
true
The pointer scatters the sand, and a click moves to the next figure.
touch
Type number
1
How hard the pointer shakes the plate under it.
background
Type string
–
Base colour of the plate; empty follows the page.
maxFps
Type number
60
Most frames drawn per second.
children
Type ReactNode
–
Content shown on top of the background.
className
Type string
–
Classes for the box; it fills whatever size you give it.