Last active
August 10, 2021 17:57
-
-
Save ernestofreyreg/ae1b21832519ad6564be4897d797f3cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { ComponentMeta } from '@storybook/react' | |
import { SubscribeHero } from './SubscribeHero' | |
import { action } from '@storybook/addon-actions' | |
import { Container } from '@material-ui/core' | |
export default { | |
title: 'Components/SubscribeHero', | |
component: SubscribeHero, | |
decorators: [ | |
Story => ( | |
<Container maxWidth='lg'> | |
<Story /> | |
</Container> | |
) | |
] | |
} as ComponentMeta<typeof SubscribeHero> | |
export const emailInput = () => <SubscribeHero onSubmit={action('onSubmit')} /> | |
export const subscribing = () => <SubscribeHero onSubmit={action('onSubmit')} isSubscribing /> | |
export const withError = () => <SubscribeHero onSubmit={action('onSubmit')} hasError /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment