Primitives

Carousel

Native scroll-snap. Arrows inside or outside, dots or a bar, autoplay that stops on hover and for reduced motion.

Gulshan Parking

412 bays · 3 levels

Banani Tower

160 bays · basement

Dhanmondi Lot

80 bays · open air

Uttara Sector 7

220 bays · 2 levels

Mirpur 10

96 bays · open air

Your sites

Gulshan Parking

412 bays · 3 levels

Banani Tower

160 bays · basement

Dhanmondi Lot

80 bays · open air

Uttara Sector 7

220 bays · 2 levels

Mirpur 10

96 bays · open air

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Carousel } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

src/components/ui/carousel.tsx
PropTypeDefaultDescription
childrenrequiredReact.ReactNode—
slideClassNamestring"basis-full"
gapnumber12Space between slides, px.
arrows"inside" | "outside" | "none""inside"
indicator"dots" | "bar" | "none""dots"
autoplaynumber—
loopbooleanfalse
titleReact.ReactNode—Above the slides, left of outside arrows.
aria-labelstring"Carousel"
classNamestring—

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui