feat(SW-3636): Storybook structure * New sections in Storybook sidebar * Group Storybook content files and add token files for spacing, border radius and shadows Approved-by: Joakim Jäderberg
30 lines
490 B
TypeScript
30 lines
490 B
TypeScript
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
|
|
import { LoadingSpinner } from './index'
|
|
|
|
const meta: Meta<typeof LoadingSpinner> = {
|
|
title: 'Patterns/LoadingSpinner',
|
|
component: LoadingSpinner,
|
|
argTypes: {
|
|
fullPage: {
|
|
control: 'check',
|
|
},
|
|
},
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof LoadingSpinner>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
fullPage: false,
|
|
},
|
|
}
|
|
|
|
export const Fullpage: Story = {
|
|
args: {
|
|
fullPage: true,
|
|
},
|
|
}
|