import type { Meta, StoryObj } from '@storybook/react'; import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from '@konobangu/design-system/components/ui/carousel'; /** * A carousel with motion and swipe built using Embla. */ const meta: Meta = { title: 'ui/Carousel', component: Carousel, tags: ['autodocs'], argTypes: {}, args: { className: 'w-full max-w-xs', }, render: (args) => ( {Array.from({ length: 5 }).map((_, index) => (
{index + 1}
))}
), parameters: { layout: 'centered', }, } satisfies Meta; export default meta; type Story = StoryObj; /** * The default form of the carousel. */ export const Default: Story = {}; /** * Use the `basis` utility class to change the size of the carousel. */ export const Size: Story = { render: (args) => ( {Array.from({ length: 5 }).map((_, index) => (
{index + 1}
))}
), args: { className: 'mx-12 w-full max-w-xs', }, };