feat: 增加 storybook

This commit is contained in:
qier222 2022-05-13 23:33:11 +08:00
parent 8d7ae405a6
commit 0520af8466
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
21 changed files with 9127 additions and 104 deletions

View file

@ -0,0 +1,24 @@
import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'
import { NowPlaying } from './NowPlaying'
export default {
title: 'NowPlaying',
component: NowPlaying,
argTypes: {
backgroundColor: { control: 'color' },
},
parameters: {
viewport: {
defaultViewport: 'iphone8p',
},
},
} as ComponentMeta<typeof NowPlaying>
const Template: ComponentStory<typeof NowPlaying> = args => <NowPlaying />
export const Primary = Template.bind({})
Primary.args = {
primary: true,
label: 'NowPlaying',
}