Story for the ReaderSettingsControl

This commit is contained in:
Jackson Harper
2022-05-02 12:32:41 -07:00
parent 93bd6b6ed5
commit 9bdd7573c6

View File

@ -0,0 +1,24 @@
import { ComponentStory, ComponentMeta } from '@storybook/react'
import { Box } from '../components/elements/LayoutPrimitives'
import { ReaderSettingsControl } from '../components/templates/article/ReaderSettingsControl'
export default {
title: 'Components/ReaderSettingsControl',
component: ReaderSettingsControl,
argTypes: {
position: {
description: 'The ReaderSettingsControl component',
control: { type: 'select' },
},
},
} as ComponentMeta<typeof ReaderSettingsControl>
export const ReaderSettingsStory: ComponentStory<typeof ReaderSettingsControl> = (args: any) => {
return (
<div style={{ width: '265px', border: '2px solid black' }}>
<ReaderSettingsControl marginWidth={300} lineHeight={200} articleActionHandler={(action) => {
console.log('articleActionHandler')
}} />
</div>
)
}