Published
Edited
Nov 8, 2021
Importers
28 stars
Insert cell
Insert cell
Insert cell
{
let iconRows = "";

for (const [name, icon] of Object.entries(icons)) {
const defaultSized = getIconSvg(name);
const description = icon.tags.join(", ");
iconRows += `|${defaultSized}|${name}|${description}|\n`;
}

return md`## Available Icons

|Icon|Name|Description|
|:--:|:---|:---|
${iconRows}`;
}
Insert cell
getIconSvg = (name, size = 24, attrs = {}) => {
const icon = icons[name];

if (icon) {
return icon.toSvg({ ...attrs, width: size, height: size });
}
}
Insert cell
version = "4.28.0"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more