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
// default template | |
module.exports = ({ | |
name, | |
viewBox, | |
pathData | |
}) => `import React from 'react' | |
const ${name}Icon = ({ | |
size, | |
color, |
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 PropTypes from 'prop-types'; | |
import { makeDecorator } from '@storybook/addons'; | |
import reactElementToJSXString from 'react-element-to-jsx-string' | |
import base64url from 'base64-url'; | |
const renderJsx = (code, options = {}) => { | |
if (typeof code === 'undefined') { | |
return console.warn('Undefined component'); | |
} |
NewerOlder