@itwin/itwinui-icons-elements
TypeScript icon, indicating that this package has built-in type declarations

0.21.0 • Public • Published

@itwin/itwinui-icons-elements

Custom elements for svgs from @itwin/itwinui-icons.

Usage

  1. 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';
  1. 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.

Package Sidebar

Install

npm i @itwin/itwinui-icons-elements

Weekly Downloads

297

Version

0.21.0

License

MIT

Unpacked Size

302 kB

Total Files

397

Last publish

Collaborators

  • wgoehrig
  • cshafer
  • aruniverse
  • imodeljs
  • colinkerr