mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Story for the ReaderSettingsControl
This commit is contained in:
parent
93bd6b6ed5
commit
9bdd7573c6
1 changed files with 24 additions and 0 deletions
24
packages/web/stories/ReaderSettingsControl.stories.tsx
Normal file
24
packages/web/stories/ReaderSettingsControl.stories.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue