4.2.0
Core

Carousel

A row of slides a reader drags or steps through, on embla — the one layout here that hides content behind an interaction.

Carousel

A strip of import batches, two at a time. The arrows are the package's `Button` at `size="icon-sm"` — 32px, the touch floor — rather than an override on top of a bigger size, and they sit outside the viewport, which is why the strip is given `px-12` to sit them in.

imp_4812

HubSpot export

12,480 rowsDone
imp_4813

Intercom contacts

3,102 rowsWorking on it
imp_4814

Conference list

860 rowsStuck
imp_4815

Website signups

2,046 rowsDone
imp_4816

Partner referral

318 rowsDone

Usage

import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from '@oceanic-hub/brand-system'
<Carousel>
  <CarouselContent>
    <CarouselItem>…</CarouselItem>
  </CarouselContent>
  <CarouselPrevious>…</CarouselPrevious>
  <CarouselNext>…</CarouselNext>
</Carousel>

Composition

Use the following composition to build a Carousel:

Carousel
├── CarouselContent
│   └── CarouselItem
├── CarouselPrevious
└── CarouselNext

Reach for it last. Everything off the first screen of a carousel is content a reader has to work to find, and most of the time the honest answer is a grid that wraps, a ScrollArea that shows its own overflow, or a DataTable if the items are comparable. It earns its place when the items are peers, the order is theirs rather than the reader's, and missing one costs nothing — a shelf of recent imports, a gallery, an onboarding sequence.

Almost none of this API is ours. opts is embla's EmblaOptionsType verbatim, not wrapped and not renamed, and setApi hands over the embla instance itself — every scrollTo, scrollSnapList, on and off arrives through it. Read embla's docs for those, and read this page for the four things that ARE ours: which Button the arrows are, where they sit, what they say, and orientation.

orientation is the one prop to be careful with, because the plausible alternative type-checks and does nothing. axis is a legal embla option, so opts={{ axis: 'y' }} compiles — and it is inert: the component builds embla's options with axis derived from orientation, which defaults to horizontal. orientation also moves the arrows and flips the gutter, so there is deliberately no second way to say it.

The arrows sit OUTSIDE the viewport, absolutely positioned, so that no slide is ever covered by one. That is a layout obligation on the caller rather than a detail: leave the strip horizontal room (px-12) or vertical room (py-14), or the first arrow will be clipped by whatever contains it.

Two behaviours are worth knowing before they surprise you. Passing children to an arrow replaces the icon AND the sr-only label, so children that are an icon alone are an unlabelled button — say words, or say span with className="sr-only". And a caller's onClick or disabled on an arrow REPLACES the scroll wiring rather than joining it, because the props spread lands last; if you want both, take setApi and call scrollNext() yourself.

There is no dot or indicator part, matching upstream. setApi plus scrollSnapList() builds one in about ten lines of product code, and inventing a superset on the one component whose promotion bar had to be waived is not where to start.

Two upstream examples are refused rather than left silent. RTL is not supported — the package-wide refusal recorded in pairings.json under direction. And upstream's Plugins example is not ported: embla's plugins ship as separate packages (embla-carousel-autoplay and friends), none of which this repo depends on, so a demo of one would be documentation of something a reader cannot copy from here. The plugins prop is embla's own and works — add the plugin package in your app.

Sizes

How many slides show at once is basis-* on the CarouselItem, not a count passed to the carousel: embla measures the DOM. That is also why the responsive prefixes work as they do anywhere else — basis-1/3 here means three at this breakpoint and nothing more.

Enrichment
Dedupe
Outreach draft
Sync to CRM
Bounce sweep
Recap

Spacing

The gutter is a PAIR and the two halves must agree: a negative margin on the CarouselContent cancels the padding each CarouselItem carries on its leading edge. Change one without the other and the strip drifts a few pixels out of line with everything above it.

HubSpot
Intercom
Salesforce
CSV upload
Webhook
Zapier

Vertical

orientation="vertical" is the only way to change the axis — it overwrites embla's own axis option, so opts={{ axis: 'y' }} alone compiles and does nothing. It also moves the arrows above and below the strip, which is why this one is given vertical room rather than horizontal.

Enrichmentrun_9f21
00:41
Deduperun_9f20
02:17
Outreach draftrun_9f1e
00:09
Enrichmentrun_9f1c
01:53
Sync to CRMrun_9f1a
00:26

Options

opts is embla's own options object, passed straight through — nothing here re-spells it, so embla's documentation is the reference. loop is the one with a visible consequence for the chrome: with it on, there is never an end to reach, so neither arrow ever disables.

Step 1

Connect a source

Step 2

Map the columns

Step 3

Pick a sending domain

Step 4

Warm up

Step 5

Send the first batch

Dots

There is no indicator part, and this is why there does not need to be: setApi hands over the embla instance, scrollSnapList() says how many stops there are and selectedScrollSnap() says which one you are on. Unsubscribe from whatever you subscribe to — the instance outlives a remount.

412 contacts enriched

Job titles and company size, from three sources.

38 duplicates merged

Matched on email, then on domain plus full name.

9 hard bounces removed

Also excluded from the next import of this list.

2 domains verified

SPF and DKIM both resolved on the first attempt.

Its own words

Upstream hard-codes the arrows' icon and their sr-only label; here both are a default that children replaces, so a localised surface can say its own. The catch is in the same sentence: children replace the label too, so an icon on its own is an unlabelled button.

Semana 1
Semana 2
Semana 3
Semana 4
Semana 5

API Reference

See the Carousel API page for every prop of every part, with types, defaults and the contract that pins them.

On this page