p5.js-web-editor/client/common/Icon.stories.jsx

18 lines
334 B
React
Raw Normal View History

2020-04-19 20:30:32 +02:00
import React from 'react';
import { select } from '@storybook/addon-knobs';
import Icon from './Icon';
export default {
title: 'Common/Icon',
component: Icon
};
export const AllIcons = () => {
const firstIconName = Object.keys(Icon.names)[0];
return (
<Icon name={select('name', Icon.names, firstIconName)} />
);
};