Feature/storybook tests * feature: add interaction tests for storybook and upgrade storybook@9 * add a11y testing for storybook * Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests * Test and build only required packages * . * . * . * . * . * . * . * disable playwright tests in netlify ci * . * debug out process.env * don't run playwright on CI * remove unused netlify-plugin-playwright-cache * . * . * . * . * . * . * remove turbo dependancy to design-system#test * merge * merge Approved-by: Anton Gunnarsson
26 lines
397 B
TypeScript
26 lines
397 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
|
|
import { Card } from './Card.tsx'
|
|
|
|
const meta: Meta<typeof Card> = {
|
|
title: 'Components/Card',
|
|
component: Card,
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof Card>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
as: 'Default',
|
|
},
|
|
}
|
|
|
|
export const Featured: Story = {
|
|
args: {
|
|
...Default.args,
|
|
as: 'Featured',
|
|
},
|
|
}
|