icons-pack / react-simple-icons

📦 This package provides the Simple Icons packaged as a set of React components.
MIT License
296 stars 18 forks source link

May you can change to #93

Closed mikoloism closed 2 years ago

mikoloism commented 3 years ago

Hi there :wave:

you can only create one component which use as cdn from readme

so,

// usage
<SimpleIcons icon="[ICON SLUG]" ...otherAttrs />
// only for example
const SimplyIcons = ({ icon, ...other }) => {
    return (
        <img height={height} width={width} src={`https://cdn.jsdelivr.net/npm/simple-icons@v4/icons/${icon}.svg`} />
    );
};
// ... exports

:thinking: