import type { Args } from '@storybook/react-webpack5'; import { createSandboxStory, globalScope, } from '../../../.storybook/components/sandbox/SandboxEditor'; import Carousel from '..'; import { stubbedCarouselCards } from './constants'; export default { args: { cards: stubbedCarouselCards, header: 'Carousel title', }, component: Carousel, title: 'Navigation/Carousel', }; export const Playground = { render: (args: Args) => { return ; }, args: {}, }; export const Sandbox = createSandboxStory({ code: `const App = () => { const cards = [ { id: 'card-1', type: 'button', onClick: console.log, content: (
), }, { id: 'card-2', type: 'promo', href: '#', title: 'Wise', description: 'The best way to move money internationally', }, { id: 'card-3', type: 'anchor', href: '#', hrefTarget: '_blank', content: Get Quick Pay, }, ]; return ; };`, scope: globalScope, });