Skip to content

Carousel

A track of slides you throw with a finger, a mouse or a trackpad: the release velocity picks the slide and the snap carries it on a spring, and past either end the track stretches like rubber.

$149 once · every Pro piece

Customize

Under it a hairline fills as you go, its head hot while the track moves.

Install

npx shadcn@latest add @obsyde/carousel

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Carousel } from '@/components/obsyde/ember/carousel/Carousel';

export function Example() {
  return (
    <Carousel />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/carousel/Carousel.tsxcomponent
  • ember/carousel/carousel-demo.cssstyles
  • ember/carousel/carousel.cssstyles
  • ember/carousel/CarouselDemo.tsxdemo
  • ember/basics-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
countSlidesnumber6
slideWidthSlide widthnumber1
gapGapnumber12
defaultIndexStart atnumber0