@itwin/itwinui-icons-elements
v0.23.0
Published
Exports svgs from @itwin/itwinui-icons as custom elements
Readme
@itwin/itwinui-icons-elements
Custom elements for svgs from @itwin/itwinui-icons.
Usage
- 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>React / JSX typings
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.
