KQ-071 · FACET/CUBE

Facet Cube

A six-face content cube with real CSS geometry — drag to rotate with per-pixel resistance, release and it snaps both axes to the nearest 90° detent, or walk faces with the arrow keys; the facing face is announced on settle.

KQ-071 · FACET/CUBE
Specimen Bays · 6 FacesKQ-071
BAY A
A-071-1SEALED
Face 1 of 6: BAY A

Facing · BAY A · SEALED

Drag the cube or use the arrow keys - it settles on the nearest face.

Install

One command — the source lands in your repo. Or copy it from the Code tab.

$ pnpm dlx shadcn@latest add @kinetiq/facet-cube

Props

PropTypeDefaultDescription
facesReactNode[]Up to six face plates; missing faces render empty.
labelsstring[]Per-face names for the screen-reader announcement.
sizenumber220Cube edge in px; the wrapper pads for mid-turn corners.
defaultFace / onFaceChangenumber / (index) => voidStarting face and the settle callback.