yadl-azure-icons
v1.0.10
Published
YADL AZURE ICONs
Maintainers
Readme
YADL Azure Icons
Install
npm i yadl-azure-icons
How to use
Below is example on how to integrate YADL Azure Icons.
import { useMemo } from "react";
import * as AzureIcons from "yadl-azure-icons";
import { AzureIconNames } from "yadl-azure-icons";
import { memo } from "react";
const Icons = () => {
const IconsComponent = useMemo(() => {
const listItems = Object.entries(AzureIconNames)
.map((icons) => {
const [key, iconDetails] = icons;
let Icon = AzureIcons[iconDetails.icon];
if (Icon) {
return (
<div
key={key}
className="dndnode m-2"
title={iconDetails.name}
style={{ padding: 10 }}
>
{Icon && <Icon width={50} height={50} />}
</div>
);
}
return null;
});
return listItems;
}, []);
return (
<div style={{ height: "100%", width: "100%", overflow: "visible" }}>
<div style={{ display: "flex", flexWrap: "wrap" }}>
{IconsComponent}
</div>
</div>
);
};
const Memo = memo(Icons);
export default Memo;