
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@dreamworld/dw-icon
Advanced tools
An element, used to show an icon in Dreamworld Apps.
npm install --save @dreamworld/dw-icon
<dw-icon name="action_alarm"></dw-icon>
It internally uses @material/mwc-icon to render material icons. But, User is allowed to override any of the
material icon (if necessary). And can add any application specific icons as well.
mwc-icon?In mwc-icon we can't override any icon OR can't add application specific icons. So, When mwc-icon is used by the inter-app re-usable web-component, application has no way to customize it's icon.
disabled has higher priority, so, when active and disabled both are specified. It will be
effectively disabled.FILLED and OUTLINED. Default is FILLED--dw-icon-color-active
--dw-icon-color
--dw-icon-color-disabled
By default icon is rendered in 24px size. You can render it in different size when needed.
<dw-icon name="action_alarm" size="16"></dw-icon>
If application specific icon
DwIcon.addIcons({
{icon_name}: {svgIcon}
});
e.g.
DwIcon.addIcons({
kerika_chat: svg``
});
icon_name is used to set different sized icons. e.g.
DwIcon.addIcons({
kerika_chat: {svgIcon},
kerika_chat_16: {svgIcon}
});
kerika_chat is default sized (24px) icon. While kerika_chat_16 is of 16px size.
Icon must be added before it's usage. So, add application specific icons from app-shell only.
This could be done in the same way as Add application icons. Just use material icon's name as name.
FAQs
An element, used to show an icon in Dreamworld Apps.
We found that @dreamworld/dw-icon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.