Work in Progress

This library is still a work in progress and things will likely change.

Nova by Resknow

Carousel

Component Heros

Included with Starter Kit

Preview

Lightbox

This component is included with the Astro Starter Kit.

Usage

Import both the Carousel and CarouselSlide components where you want to use them.

import Carousel from '@components/Carousel.astro';
import CarouselSlide from '@components/CarouselSlide.astro';

You can then use the Carousel component with CarouselSlide components as children.

<Carousel withArrows withDots>
	<CarouselSlide>...</CarouselSlide>
	<CarouselSlide>...</CarouselSlide>
</Carousel>

The carousel accepts withArrows or withDots props, both are optional.

Scooch Options

The Carousel uses Scooch to power the carousel. You can pass options to Scooch using the options prop and passing an object of Scooch options.

<Carousel options={{ autoplay: false, keyboardControls: false }}></Carousel>