# bowls.dev > Hand-picked React components, animations and blocks. Browse the bowl, scoop out what you like, paste it into your project. 23 components, built with React, TypeScript, Tailwind CSS 4 and Motion. Free components are MIT; Pro components need a licence. ## How to use this library 1. Find a component below; each link is a Markdown page with props, usage and (for free components) full source. 2. Copy the source into `components/bowls/.tsx` in a React + Tailwind CSS 4 project. 3. Install any listed dependencies (usually `motion`). 4. Components handle light and dark mode with Tailwind `dark:` classes and respect reduced motion. ## Buttons ### Jelly Button > A chunky button that squashes like jelly when you press it. - Category: Buttons - Tier: Free (MIT) - Page: https://bowls.dev/components/jelly-button - Requires: React 18+, Tailwind CSS 4, motion #### Install Copy the source below into `components/bowls/jelly-button.tsx`, then install its dependencies: ```bash npm i motion ``` #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `children` | `ReactNode` | — | Button label. | | `color` | `string` | `"#ff5c39"` | Face colour; the ledge is mixed from it. | | `textColor` | `string` | `"#fff"` | Use a dark one on light faces. | | `onClick` | `() => void` | — | Click handler. | #### Usage ```tsx "use client"; import { JellyButton } from "@/components/bowls/jelly-button"; export default function Demo() { return (
Squish Me Please
); } ``` #### Source `components/bowls/jelly-button.tsx` ```tsx "use client"; import { motion } from "motion/react"; import type { ReactNode } from "react"; export type JellyButtonProps = { children: ReactNode; /** Face colour. The ledge underneath is mixed from it. */ color?: string; /** Text colour; use a dark one on light faces. */ textColor?: string; onClick?: () => void; className?: string; }; /** A chunky button that squashes like jelly when pressed. */ export function JellyButton({ children, color = "#ff5c39", textColor = "#fff", onClick, className }: JellyButtonProps) { return ( {children} ); } ``` ### Confetti Button > Every click throws a handful of confetti that arcs up and falls away. - Category: Buttons - Tier: Pro (source requires a Pro licence) - Page: https://bowls.dev/components/confetti-button - Requires: React 18+, Tailwind CSS 4, motion #### Install This is a Pro component. Its source is available to Pro members at https://bowls.dev/components/confetti-button — see https://bowls.dev/pricing. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `children` | `ReactNode` | — | Button label. | | `colors` | `string[]` | — | Confetti colours. | | `count` | `number` | `30` | Pieces per burst. | | `onClick` | `() => void` | — | Called after the burst fires. | ### Pour Toggle > Tip the bowl: a splash falls, and the new theme ripples out from where it lands. - Category: Buttons - Tier: Free (MIT) - Page: https://bowls.dev/components/pour-toggle - Requires: React 18+, Tailwind CSS 4 #### Install Copy the source below into `components/bowls/pour-toggle.tsx`. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `storageKey` | `string` | `"theme"` | localStorage key that remembers the choice. | | `attribute` | `string` | `"data-theme"` | Attribute set on to light or dark. | | `duration` | `number` | `1500` | Length of the splash and ripple, in ms. | | `size` | `number` | `44` | Button size, in px. | | `onChange` | `(theme) => void` | — | Called after each switch. | #### Usage ```tsx "use client"; import { PourToggle } from "@/components/bowls/pour-toggle"; export default function Demo() { return (
click to pour · alt-click for system
); } ``` #### Source `components/bowls/pour-toggle.tsx` ```tsx "use client"; import { useEffect, useId, useRef, useState } from "react"; import { flushSync } from "react-dom"; type Theme = "light" | "dark"; export type PourToggleProps = { /** localStorage key used to remember the choice. */ storageKey?: string; /** Attribute set on : data-theme="light" | "dark". */ attribute?: string; /** Length of the splash and ripple, in ms (the bowl tips for 320 ms first). */ duration?: number; /** Button size, in px. */ size?: number; onChange?: (theme: Theme) => void; className?: string; }; const DARK_QUERY = "(prefers-color-scheme: dark)"; const TIP_MS = 320; const systemTheme = (): Theme => (window.matchMedia(DARK_QUERY).matches ? "dark" : "light"); function readTheme(attribute: string): Theme { const forced = document.documentElement.getAttribute(attribute); return forced === "dark" || forced === "light" ? forced : systemTheme(); } const easeIn = (t: number) => t * t * t; const easeInOut = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2); /** * Clip-path keyframes for the pour. The bowl empties a tiny splash — one * teardrop and two droplets — that falls to the bottom of the page. Where it * lands, the new theme spreads out as a ripple with a wobbly water edge until * it covers everything. Every frame has the same number of points (shapes are * joined by zero-width seams), so the browser can interpolate between them. */ function pourKeyframes(lipX: number, lipY: number, w: number, h: number, steps = 90) { const RING = 56; // points around the ripple const DROP = 14; // points around each drop const LEAVE = 0; // the bowl has already tipped; water leaves the lip at once const LAND = 0.3; // first drop hits the bottom const DROPS = [ { size: 9, lag: 0 }, { size: 5, lag: 0.035 }, { size: 3.5, lag: 0.065 }, ]; const frames: string[] = []; const impactY = h + 4; const pathX = (y: number) => lipX + 16 * (1 - Math.exp(-Math.max(0, y - lipY) / 50)); const impactX = pathX(impactY); const reach = Math.max(Math.hypot(impactX, impactY), Math.hypot(w - impactX, impactY)) + 60; const p = (x: number, y: number) => `${x.toFixed(1)}px ${y.toFixed(1)}px`; for (let i = 0; i <= steps; i++) { const t = i / steps; // The ripple: grows from the impact point with a wobbling edge. const spread = t <= LAND ? 0 : easeInOut((t - LAND) / (1 - LAND)); const radius = spread * reach; const wobble = radius > 0 ? Math.min(12, radius * 0.08) : 0; const ring = Array.from({ length: RING }, (_, k) => { const a = (k / RING) * Math.PI * 2; const r = radius + wobble * Math.sin(a * 9 + t * 30) + wobble * 0.5 * Math.sin(a * 5 - t * 22); return p(impactX + Math.cos(a) * r, impactY + Math.sin(a) * r); }); const pts = [...ring, ring[0]]; // The drops: each falls with gravity, stretching as it speeds up, and is // swallowed when it reaches the bottom. for (const d of DROPS) { const start = LEAVE + d.lag; const end = LAND + d.lag; const fall = t <= start ? 0 : Math.min((t - start) / (end - start), 1); const alive = t > start && fall < 1; const swell = alive ? Math.min((t - start) / 0.04, 1) : 0; const s = d.size * swell; const cy = lipY + s + (impactY - lipY) * easeIn(fall); const cx = pathX(cy); const stretch = 1.3 + fall * 1.2; for (let k = 0; k <= DROP; k++) { const phi = (k / DROP) * Math.PI * 2; pts.push(p(cx + s * Math.sin(phi) * Math.sin(phi / 2), cy - s * stretch * Math.cos(phi))); } pts.push(ring[0]); } frames.push(`polygon(${pts.join(", ")})`); } return frames; } /** * A theme toggle shaped like a bowl, full of the colour you'll switch to. * Click it and the bowl tips, the water slides out over the rim, a small * splash falls to the bottom of the page and the new theme ripples out from * where it lands. The bowl comes back upright, refilled with the other colour. * Alt/Option-click goes back to the system setting. * * Needs your CSS to read `[data-theme]` (see the docs). The splash uses View * Transitions; other browsers, and reduced motion, switch instantly. * No dependencies besides React. */ export function PourToggle({ storageKey = "theme", attribute = "data-theme", duration = 1500, size = 44, onChange, className, }: PourToggleProps) { const button = useRef(null); const bowl = useRef(null); const water = useRef(null); const clipId = useId(); const [theme, setTheme] = useState(null); const [busy, setBusy] = useState(false); useEffect(() => { setTheme(readTheme(attribute)); const media = window.matchMedia(DARK_QUERY); const follow = () => !document.documentElement.hasAttribute(attribute) && setTheme(systemTheme()); media.addEventListener("change", follow); return () => media.removeEventListener("change", follow); }, [attribute]); const apply = (next: Theme | null) => { const root = document.documentElement; if (next) root.setAttribute(attribute, next); else root.removeAttribute(attribute); try { if (next) localStorage.setItem(storageKey, next); else localStorage.removeItem(storageKey); } catch { /* private mode: the choice just won't persist */ } const resolved = next ?? systemTheme(); setTheme(resolved); onChange?.(resolved); }; const pour = async (e: React.MouseEvent) => { if (busy) return; const next: Theme | null = e.altKey ? null : theme === "dark" ? "light" : "dark"; const calm = window.matchMedia("(prefers-reduced-motion: reduce)").matches; if (!document.startViewTransition || calm || !button.current || !bowl.current || !water.current) { apply(next); return; } setBusy(true); // 1. Tip the bowl and let the water slide out over the rim. This happens // on the live page, so the old snapshot keeps the empty, tipped bowl. const tip = bowl.current.animate([{ transform: "rotate(0deg)" }, { transform: "rotate(100deg)" }], { duration: TIP_MS, easing: "cubic-bezier(.3,.1,.3,1)", fill: "forwards", }); const empty = water.current.animate([{ transform: "translateY(0px)" }, { transform: "translateY(-16px)" }], { duration: TIP_MS * 0.7, delay: TIP_MS * 0.3, easing: "ease-in", fill: "forwards", }); await tip.finished; // 2. Splash and ripple. The new state has the bowl upright and refilled. const box = button.current.getBoundingClientRect(); const rim = size * 0.6 * (14 / 32); const lipX = box.left + box.width / 2 + rim * Math.cos((100 * Math.PI) / 180); const lipY = box.top + box.height / 2 + rim * Math.sin((100 * Math.PI) / 180); const transition = document.startViewTransition(() => { tip.cancel(); empty.cancel(); flushSync(() => apply(next)); }); try { await transition.ready; document.documentElement.animate( { clipPath: pourKeyframes(lipX, lipY, window.innerWidth, window.innerHeight) }, { duration, easing: "linear", pseudoElement: "::view-transition-new(root)" }, ); await transition.finished; } finally { setBusy(false); } }; const label = theme ? `Pour ${theme === "dark" ? "light" : "dark"} mode (Alt-click for system)` : "Toggle theme"; return ( ); } ``` ### Spring Toggle > A switch with a little squish in its step. - Category: Buttons - Tier: Free (MIT) - Page: https://bowls.dev/components/spring-toggle - Requires: React 18+, Tailwind CSS 4, motion #### Install Copy the source below into `components/bowls/spring-toggle.tsx`, then install its dependencies: ```bash npm i motion ``` #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `label` | `string` | — | Accessible name for the switch. | | `checked` | `boolean` | — | Controlled state. | | `defaultChecked` | `boolean` | `false` | Initial state when uncontrolled. | | `onCheckedChange` | `(checked: boolean) => void` | — | Called on every change. | | `size` | `"sm" \| "md" \| "lg"` | `"md"` | Switch size. | #### Usage ```tsx "use client"; import { SpringToggle } from "@/components/bowls/spring-toggle"; export default function Demo() { return (
); } ``` #### Source `components/bowls/spring-toggle.tsx` ```tsx "use client"; import { motion } from "motion/react"; import { useState } from "react"; export type SpringToggleProps = { checked?: boolean; defaultChecked?: boolean; onCheckedChange?: (checked: boolean) => void; /** Accessible name. Shown visually only if you render it yourself. */ label: string; size?: "sm" | "md" | "lg"; disabled?: boolean; }; const SIZES = { sm: { w: 44, h: 26 }, md: { w: 64, h: 36 }, lg: { w: 84, h: 46 } }; export function SpringToggle({ checked, defaultChecked = false, onCheckedChange, label, size = "md", disabled }: SpringToggleProps) { const [inner, setInner] = useState(defaultChecked); const on = checked ?? inner; const { w, h } = SIZES[size]; const pad = Math.round(h * 0.12); const knob = h - pad * 2; const toggle = () => { const next = !on; if (checked === undefined) setInner(next); onCheckedChange?.(next); }; return ( ); } ``` ## Text effects ### Aurora Text > Text filled with slowly drifting colour. - Category: Text effects - Tier: Free (MIT) - Page: https://bowls.dev/components/aurora-text - Requires: React 18+, Tailwind CSS 4 #### Install Copy the source below into `components/bowls/aurora-text.tsx`. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `children` | `ReactNode` | — | The text. | | `colors` | `string[]` | — | Colours in the sweep. | | `speed` | `number` | `6` | Seconds for one sweep. | #### Usage ```tsx import { AuroraText } from "@/components/bowls/aurora-text"; export default function Demo() { return (

Good UI,
in full colour.

); } ``` #### Source `components/bowls/aurora-text.tsx` ```tsx import type { ReactNode } from "react"; export type AuroraTextProps = { children: ReactNode; colors?: string[]; /** Seconds for one sweep of colour. */ speed?: number; className?: string; }; const DEFAULT_COLORS = ["#ff5c39", "#ffb800", "#22c55e", "#3b82f6", "#a855f7"]; /** Text filled with slowly drifting colour. Still readable: it's just a fill. */ export function AuroraText({ children, colors = DEFAULT_COLORS, speed = 6, className }: AuroraTextProps) { const stops = [...colors, colors[0]].join(", "); return ( {children} ); } ``` ### Typewriter > Types, holds and deletes a list of words, each in its own colour. - Category: Text effects - Tier: Free (MIT) - Page: https://bowls.dev/components/typewriter - Requires: React 18+, Tailwind CSS 4 #### Install Copy the source below into `components/bowls/typewriter.tsx`. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `words` | `{ text: string; color: string }[]` | — | Words to cycle through. | | `typeSpeed` | `number` | `70` | ms per typed character. | | `deleteSpeed` | `number` | `35` | ms per deleted character. | | `hold` | `number` | `1300` | ms a finished word stays up. | #### Usage ```tsx "use client"; import { Typewriter } from "@/components/bowls/typewriter"; const words = [ { text: "landing pages", color: "#ff5c39" }, { text: "dashboards", color: "#3b82f6" }, { text: "side projects", color: "#16a34a" }, { text: "portfolios", color: "#a855f7" }, ]; export default function Demo() { return (

Build better

); } ``` #### Source `components/bowls/typewriter.tsx` ```tsx "use client"; import { useEffect, useState } from "react"; export type TypewriterProps = { words: { text: string; color: string }[]; /** ms per typed character. */ typeSpeed?: number; /** ms per deleted character. */ deleteSpeed?: number; /** ms a finished word stays up. */ hold?: number; }; /** Types a word, holds it, deletes it, moves on. Each word brings its own colour. */ export function Typewriter({ words, typeSpeed = 70, deleteSpeed = 35, hold = 1300 }: TypewriterProps) { const [index, setIndex] = useState(0); const [length, setLength] = useState(0); const [deleting, setDeleting] = useState(false); const word = words[index % words.length]; useEffect(() => { const full = length === word.text.length; const delay = deleting ? deleteSpeed : full ? hold : typeSpeed; const timer = setTimeout(() => { if (!deleting && full) setDeleting(true); else if (deleting && length === 0) { setDeleting(false); setIndex((i) => i + 1); } else setLength((l) => l + (deleting ? -1 : 1)); }, delay); return () => clearTimeout(timer); }, [length, deleting, word, typeSpeed, deleteSpeed, hold]); return ( {word.text} ); } ``` ### Text Scramble > Glyph-shuffling reveal on mount or hover. - Category: Text effects - Tier: Free (MIT) - Page: https://bowls.dev/components/text-scramble - Requires: React 18+, Tailwind CSS 4 #### Install Copy the source below into `components/bowls/text-scramble.tsx`. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `text` | `string` | — | The final text. | | `trigger` | `"mount" \| "hover" \| "both"` | `"both"` | When to scramble. | | `speed` | `number` | `38` | Milliseconds per frame. | | `glyphs` | `string` | — | Characters used while scrambling. | #### Usage ```tsx "use client"; import { TextScramble } from "@/components/bowls/text-scramble"; export default function Demo() { return (
_
); } ``` #### Source `components/bowls/text-scramble.tsx` ```tsx "use client"; import { useCallback, useEffect, useRef, useState } from "react"; export type TextScrambleProps = { text: string; /** Run once on mount, on hover, or both. */ trigger?: "mount" | "hover" | "both"; /** Milliseconds per frame. */ speed?: number; /** Characters used while scrambling. */ glyphs?: string; className?: string; }; const DEFAULT_GLYPHS = "!<>-_\\/[]{}—=+*^?#%€$3&@"; export function TextScramble({ text, trigger = "both", speed = 38, glyphs = DEFAULT_GLYPHS, className }: TextScrambleProps) { const [output, setOutput] = useState(text); const timer = useRef | null>(null); const run = useCallback(() => { if (timer.current) clearInterval(timer.current); let frame = 0; const total = text.length * 3; timer.current = setInterval(() => { frame++; const revealed = Math.floor(frame / 3); setOutput( text .split("") .map((ch, i) => (i < revealed || ch === " " ? ch : glyphs[Math.floor(Math.random() * glyphs.length)])) .join(""), ); if (frame >= total && timer.current) { clearInterval(timer.current); setOutput(text); } }, speed); }, [text, speed, glyphs]); useEffect(() => { if (trigger !== "hover") run(); return () => { if (timer.current) clearInterval(timer.current); }; }, [run, trigger]); return ( ); } ``` ### Split Reveal > Line-by-line masked headline entrance. - Category: Text effects - Tier: Pro (source requires a Pro licence) - Page: https://bowls.dev/components/split-reveal - Requires: React 18+, Tailwind CSS 4, motion #### Install This is a Pro component. Its source is available to Pro members at https://bowls.dev/components/split-reveal — see https://bowls.dev/pricing. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `lines` | `string[]` | — | One string per line. | | `stagger` | `number` | `0.12` | Seconds between lines. | | `replayOnHover` | `boolean` | `true` | Play again when hovered. | ## Backgrounds ### Lava Lamp > Soft, blurred blobs of colour drifting behind your content. - Category: Backgrounds - Tier: Pro (source requires a Pro licence) - Page: https://bowls.dev/components/lava-lamp - Requires: React 18+, Tailwind CSS 4 #### Install This is a Pro component. Its source is available to Pro members at https://bowls.dev/components/lava-lamp — see https://bowls.dev/pricing. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `children` | `ReactNode` | — | Content on top. | | `colors` | `string[]` | — | Up to four blob colours. | | `background` | `string` | `"#0b0b14"` | Colour behind the blobs. | | `speed` | `number` | `14` | Seconds for one drift loop. | ### Dot Grid > A quiet dotted background that wakes up around the cursor. - Category: Backgrounds - Tier: Free (MIT) - Page: https://bowls.dev/components/dot-grid - Requires: React 18+, Tailwind CSS 4 #### Install Copy the source below into `components/bowls/dot-grid.tsx`. #### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | `gap` | `number` | `18` | Space between dots, in px. | | `color` | `string` | `"currentColor"` | Dot colour (inherits text colour). | | `spotlight` | `number` | `140` | Radius of the cursor spotlight. | #### Usage ```tsx "use client"; import { DotGrid } from "@/components/bowls/dot-grid"; export default function Demo() { return (
Move your cursor
); } ``` #### Source `components/bowls/dot-grid.tsx` ```tsx "use client"; import { useRef, type ReactNode } from "react"; export type DotGridProps = { children?: ReactNode; /** Gap between dots, in px. */ gap?: number; /** Dot colour. Defaults to the text colour, so it follows light / dark mode. */ color?: string; /** Radius of the cursor spotlight, in px. */ spotlight?: number; className?: string; }; /** A quiet dot background whose dots darken near the cursor. */ export function DotGrid({ children, gap = 18, color = "currentColor", spotlight = 140, className }: DotGridProps) { const ref = useRef(null); const move = (e: React.PointerEvent) => { const box = ref.current?.getBoundingClientRect(); if (!box || !ref.current) return; ref.current.style.setProperty("--x", `${e.clientX - box.left}px`); ref.current.style.setProperty("--y", `${e.clientY - box.top}px`); }; const dots = `radial-gradient(${color} 1.3px, transparent 1.6px)`; return (
ref.current?.style.setProperty("--x", "-999px")} className={`relative overflow-hidden ${className ?? ""}`} style={{ ["--x" as string]: "-999px", ["--y" as string]: "-999px" }} >