fix: renamed Spinner -> Loading
This commit is contained in:
committed by
Simon Emanuelsson
parent
d0c6d1d875
commit
32ce7d819b
@@ -0,0 +1,41 @@
|
||||
import 'react-material-symbols/rounded'
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { Loading } from './Loading'
|
||||
|
||||
const meta: Meta<typeof Loading> = {
|
||||
title: 'Components/Loading',
|
||||
component: Loading,
|
||||
argTypes: {
|
||||
type: {
|
||||
control: 'text',
|
||||
},
|
||||
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',
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user