Back to Components

Jelly Toolbar

A clean, minimal floating toolbar containing a physical jelly/slime element — not a glass blob or hover highlight.

Preview

Installation

Install the component using the CLI.

npx shadcn@latest add https://shreyashtech.me/r/jelly-toolbar.json

Usage

Import the component:

import { JellyToolbar } from "@/components/jelly-toolbar"

Use it in your code:

<JellyToolbar />

Props

PropertyTypeDefaultDescription
itemsJellyToolbarItem[]6 default itemsArray of { label, icon, shortcut?, onSelect? }.
jellyColorstring"#c4b5fd"Jelly color in light mode.
jellyColorDarkstringjellyColorJelly color in dark mode. Defaults to jellyColor if omitted.
stiffnessnumber380Spring stiffness for jelly movement — higher is snappier.
dampingnumbercritical damping (≈39 at default stiffness)Spring damping for jelly position. Internally floored at the critically-damped value for the given stiffness, so overshoot is never possible even if a lower number is passed.
enableShortcutsbooleantrueWhether pressing an item's shortcut key activates it globally.
classNamestring-Additional classes applied to the outer wrapper.