Files
web/packages/design-system/lib/components/Loading/Loading.stories.tsx
Simon Emanuelsson 91933f47cf feat: comment updates
2025-05-03 22:43:09 +02:00

44 lines
725 B
TypeScript

import 'react-material-symbols/rounded'
import type { Meta, StoryObj } from '@storybook/react'
import { Loading } from './Loading'
import { config } from './variants'
const meta: Meta<typeof Loading> = {
title: 'Components/Loading',
component: Loading,
argTypes: {
type: {
control: 'select',
options: Object.keys(config.variants.type),
},
size: {
control: 'number',
},
},
}
export default meta
type Story = StoryObj<typeof Loading>
export const Dark: Story = {
args: {
type: 'Dark',
size: 40,
},
}
export const White: Story = {
args: {
type: 'White',
size: 40,
},
parameters: {
backgrounds: {
default: 'Scandic Primary Dark',
},
},
}