Files
web/packages/design-system/lib/components/Loading/Loading.stories.tsx
Joakim Jäderberg 1bd6ce81b8 Merged in feature/SW-3245-move-jsontohtml (pull request #2661)
Feature/SW-3245 move jsontohtml

* wip

* Move JsonToHtml -> design-system

* Fix semantic issues within Stories

* replace imports of 'storybook/react-vite' with 'storybook/nextjs-vite'

* merge


Approved-by: Anton Gunnarsson
2025-08-18 07:46:21 +00:00

42 lines
690 B
TypeScript

import type { Meta, StoryObj } from '@storybook/nextjs-vite'
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',
},
},
}