mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-01 02:09:38 +08:00
25 lines
555 B
TypeScript
25 lines
555 B
TypeScript
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',
|
|
}
|