p5.js-web-editor/client/common/Icons.stories.jsx
2020-05-26 16:17:24 -04:00

18 lines
349 B
JavaScript

import React from 'react';
import { select } from '@storybook/addon-knobs';
import * as icons from './icons';
export default {
title: 'Common/Icons',
component: icons
};
export const AllIcons = () => {
const names = Object.keys(icons);
const SelectedIcon = icons[select('name', names, names[0])];
return (
<SelectedIcon />
);
};