2017-09-06 00:54:12 +02:00

30 lines
723 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import Grid from '../Grid';
import './style.css';
const Examples = ({ items }) => (
<div className="examples">
<div className="heading">
<h1>Storybook Examples</h1>
<a
className="edit-link"
href="https://github.com/storybooks/storybook/edit/master/docs/pages/examples/_examples.yml"
target="_blank"
rel="noopener noreferrer"
>
Edit this list
</a>
</div>
<Grid columnWidth={350} items={items} />
</div>
);
Examples.propTypes = {
items: PropTypes.array, // eslint-disable-line react/forbid-prop-types
};
Examples.defaultProps = {
items: [],
};
export { Examples as default };