You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
765 B
31 lines
765 B
6 years ago
|
import React from 'react'
|
||
|
import { storiesOf } from '@storybook/react'
|
||
|
import { Countdown } from 'components/UI'
|
||
|
|
||
|
storiesOf('Components.Countdown', module).addWithChapters('Countdown', {
|
||
|
chapters: [
|
||
|
{
|
||
|
sections: [
|
||
|
{
|
||
|
title: 'Default',
|
||
|
sectionFn: () => <Countdown date={Date.now() + 5000} />
|
||
|
},
|
||
|
{
|
||
|
title: 'Stop after expire',
|
||
|
sectionFn: () => <Countdown date={Date.now() + 5000} countUpAfterExpire={false} />
|
||
|
},
|
||
|
{
|
||
|
title: 'Custom colors',
|
||
|
sectionFn: () => (
|
||
|
<Countdown
|
||
|
date={Date.now() + 5000}
|
||
|
colorActive="lightningOrange"
|
||
|
colorExpired="yellow"
|
||
|
/>
|
||
|
)
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
})
|