Custom elements for svgs from @itwin/itwinui-icons.
- Import the custom element.
In an HTML page:
<script type="module" src="https://cdn.skypack.dev/@itwin/itwinui-icons-elements/placeholder"></script>
Or in JavaScript (after installing through npm/yarn):
import { SvgPlaceholder } from '@itwin/itwinui-icons-elements';
- Add the element to your markup. All element names start with
svg-
followed by the name of the icon.
<svg-placeholder></svg-placeholder>
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.