New60 live dashboardsSee them

Clothing Rail Gallery

Product gallery on a clothing rail: brush the hangers, slide pieces along and lift one to turn it front and back.

Your brand

Documentation

Source on hold: license review

The full source isn't available to copy or install yet. We're confirming the original author's license before it can be redistributed. The preview, usage example and API below are for evaluation.

Origin: User-supplied snippet (no license or author attribution included).

Interactions

  • Desktop: move the pointer along the rail to brush the pieces; drag a hanger sideways to slide it; click to lift a piece and flip it front and back.
  • Phones and narrow screens: switches to a swipeable carousel with dots, sized to fit 375 px screens.
  • Keyboard: Tab into the rail, ← → / Home / End to move along it, Enter or Space to lift a piece, Esc to put it back.
  • Reduced motion: autoplay is off and pieces settle without swinging when the visitor prefers reduced motion.

Props

Clothing Rail Gallery props
PropTypeDefaultDescription
itemsRailGarment[]—Pieces on the rail (required).
eyebrowstring—Small label above the heading.
headingstring—Section heading.
captionstring—Hint shown under the rail while nothing is selected.
actionReactNode—Call to action rendered under the caption.
autoplaybooleanfalsePresents items one by one until the visitor interacts. Off when the visitor prefers reduced motion.
intervalnumber—Milliseconds each piece faces the front during autoplay.
hanger"wood" | "matte" | "none""wood"Drawn hanger. Use "none" when your photos already include a hanger.
labels{ front; back; close; show }EnglishButton and dot labels, for translation.
onOpenChange(index: number | null) => void—Called when a piece is lifted off the rail or put back.
...propsComponentProps<"section">—Passed to the outer <section>.

RailGarment

RailGarment fields
PropTypeDefaultDescription
idstring—Unique key.
namestring—Accessible name, caption and detail title.
descriptionstring—Text in the detail view.
kind"tee" | "knit" | "hoodie" | "shirt" | "jacket" | "coat"—Built-in illustration used when no image is given.
color / trimCSS colour—Fabric and trim colour of the illustration.
image / backImage / sideImagestring—Front, back and side photos. Transparent cut-outs on a 200 × 310 portrait canvas work best.
tagstring—Hang-tag text such as a price or size.
detailsstring[]—Short facts listed in the detail view.

Requirements

  • Needs only react and react-dom. No motion or lucide-react.
  • Uses shadcn/ui colour tokens (background, foreground, card, muted, muted-foreground, border, ring). Any shadcn project already has them.