Skip to content
Hazine

Carousels

1 of 5 shipped. Each take is a different structure, and the note under its title says how.

  • carousels

    Timer-driven: the rotation toggle and a status sentence sit before a crossfading stage, and the slide markers below double as the countdown. Hover and focus hold it, choosing a slide stops it.

    shadcn add @hazine/carousel-auto-rotate-pause-first

    Depends on button, @hazine/use-controllable-state, lucide-react

Planned 4

  • Paged card carousel

    Moves by whole pages rather than single slides, with page dots implemented as tabs (aria-selected, arrow keys) and a visible 'Page 2 of 4' text label; off-page cards are inert so Tab never lands on hidden content.

  • Peek-next snap carousel

    No paging model: a native scroll container with snap points and an edge peek, focusable as a scrollable region with arrow-key scrolling, and the current index derived from an IntersectionObserver instead of carousel state.

  • Carousel with synced thumbnails

    Two linked tracks: the thumbnail strip is the tablist (image buttons with descriptive names, roving tabindex, Home and End) and the stage is the tabpanel, so navigation is direct access rather than sequential stepping.

  • Stacked deck carousel

    No track and no scrolling: slides occupy the same position on the z axis and reorder, so the footprint is one card wide at every breakpoint. Cards behind the front one are inert and aria-hidden, a horizontal drag past a threshold advances with pointer capture, and reduced motion swaps cards with no travel.