Exports svgs from @itwin/itwinui-icons as custom elements
npm install @itwin/itwinui-icons-elementsCustom elements for svgs from @itwin/itwinui-icons.
1. Import the custom element.
In an HTML page:
``html`
Or in JavaScript (after installing through npm/yarn):
`js`
import { SvgPlaceholder } from '@itwin/itwinui-icons-elements';
2. Add the element to your markup. All element names start with svg- followed by the name of the icon.
`html`
When using in a React + TypeScript environment, you will have to add your own type declarations in the JSX.IntrinsicElements` interface. For this reason, among others, it is recommended to use the @itwin/itwinui-icons-react library instead.