2018-02-17 23:32:26 +03:00

17 lines
484 B
JavaScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import Faker from 'faker';
import { checkA11y } from './../../../src';
import Image from './component';
const image = Faker.image.animals();
const alt = Faker.lorem.words();
storiesOf('<Image />', module)
.addDecorator(checkA11y)
.add('Without alt', () => <Image src={image} />)
.add('With alt', () => <Image src={image} alt={alt} />)
.add('Presentation', () => <Image presentation src={image} />);