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

0.20.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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.20.0
    457
    • latest

Version History

Package Sidebar

Install

npm i @itwin/itwinui-icons-elements

Weekly Downloads

380

Version

0.20.0

License

MIT

Unpacked Size

301 kB

Total Files

396

Last publish

Collaborators

  • wgoehrig
  • cshafer
  • aruniverse
  • imodeljs
  • colinkerr