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
35 lines
534 B
TypeScript
35 lines
534 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
|
|
import { Label } from './Label'
|
|
|
|
const meta: Meta<typeof Label> = {
|
|
title: 'Components/Label',
|
|
component: Label,
|
|
argTypes: {},
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof Label>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
required: false,
|
|
},
|
|
}
|
|
|
|
export const Discreet: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
size: 'discreet',
|
|
},
|
|
}
|
|
|
|
export const Small: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
size: 'small',
|
|
},
|
|
}
|