jbmui

ToolCaddy

  • UI Bits

An empty divided desktop organizer.

Install

npx shadcn@latest add @jbm/tool-caddy

Needs the @jbm entry in components.json; see Install once.

Also installs @jbm/tokens.

Docs

Usage

Empty caddy
import { ToolCaddy } from "@/jbm/motion/tool-caddy"<svg viewBox="0 0 400 250">  <ToolCaddy x={80} y={40} /></svg>

Props

Stage px
Declared at the documented defaults
Landscape
240 by 200
Vertical
240 by 200
Basis

Parent SVG user units at w 240: from the handle top at y − 36 to the base at y + 164. Everything scales by w / 240 (300 wide is 250 tall). Place y at least 36 × w / 240 below the viewBox top.

SVG <g> of an empty desktop organizer in three-quarter view: card front, darker side and back, an ink opening, and a carry handle rising above the rim. Tools are separate objects placed by the caller. Render inside an <svg>.

PropTypeDefaultDescription
xnumber0Left edge in the parent SVG's user units.
ynumber0Top of the rim in parent SVG units; the handle rises 36 × (w / 240) above it.
wnumber240Width in parent SVG units; the whole drawing scales uniformly by w / 240, except the stroke, which stays the shared outline (stroke.outline) in parent units.

QA checks

  • The gallery preview is a still at w 300; there are no controls to exercise.
  • Check the handle is fully inside the viewBox (it sits above y) and its gap reads as a hole.
  • Scale w up and down: the ink stroke stays the shared outline in parent units at every size; confirm it matches nearby objects.