import type { Meta, StoryObj } from "@storybook/react"; import { Carousel, Image } from "../../../components"; // @ts-ignore import Arrow from "../../../assets/icons/chevron.svg"; const urls: any = [ "https://base.matterofform.com/media/1zudodgf/frans-ruiter-phnfcr2eh00-unsplash.jpg?width=1600&format=webp", "https://base.matterofform.com/media/uziesd2a/anthony-delanoix-cfi7_hcxecu-unsplash.jpg?width=1600&format=webp", "https://base.matterofform.com/media/44lnxixr/a7f1ed2ef6b95603a7fe9591043396e2.jpeg?width=1600&format=webp", ]; const items = urls.map((url: string, i: number) => { return ( {`image${i}`} ); }); const meta: Meta = { component: Carousel, tags: ["autodocs"], parameters: { layout: "centered", }, argTypes: { align: { table: { disable: true, }, }, size: { table: { disable: true, }, }, variant: { options: ["primary", "focus", "bookcase"], }, }, args: { animationStyle: "default", variant: "primary", }, }; export default meta; type Story = StoryObj; export const DefaultCarousel: Story = { args: { items, controls: { show: true, directionComponent: , }, showPagination: true, crop: true, gap: 0, width: 661, height: 441, }, }; export const UncroppedCarousel: Story = { args: { items, controls: { show: true, directionComponent: , }, showPagination: true, crop: false, gap: 100, width: 661, height: 441, }, }; export const FocusCarousel: Story = { parameters: { backgrounds: { default: "dark", }, }, args: { items, controls: { show: true, directionComponent: , }, showPagination: true, crop: false, gap: 0, variant: "focus", width: 661, height: 441, }, }; export const BookcaseLoopingCarousel: Story = { args: { items, controls: { show: true, directionComponent: , }, showPagination: true, crop: false, loop: true, variant: "bookcase", width: 661, height: 441, }, };