diff options
author | MichaĆ Wolny <FreexD@users.noreply.github.com> | 2020-11-15 21:45:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 21:45:50 +0100 |
commit | 9113749e27e6273a421cbcaceaf15c9f15824890 (patch) | |
tree | f84c6256ae40b12b0129ef53d83da2a7b22b1eec /README.md | |
parent | Update README.md (diff) | |
parent | readme headers (diff) | |
download | tabler-icons-9113749e27e6273a421cbcaceaf15c9f15824890.tar.xz |
Merge pull request #94 from tabler/dev-cdn-info
Add CDN info to readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -92,6 +92,28 @@ const MyComponent = () => { `@tabler/icons` exports it's own type declarations for usage with React and Typescript. +### CDN + +All files included in `@tabler/icons` npm package are available over a CDN. + +#### React icons + +```html +<script src="https://unpkg.com/@tabler/icons@latest/icons-react/dist/index.umd.min.js"></script> +``` + +#### Iconfont + +```html +<link rel="stylesheet" href="https://unpkg.com/@tabler/icons@latest/iconfont/tabler-icons.min.css"> +``` + +To load a specific version replace `latest` with the desired version number. + +```html +<script src="https://unpkg.com/@tabler/icons@1.36.0/icons-react/dist/index.umd.js"></script> +``` + ## Multiple strokes All icons in this repository have been created with the value of the `stroke-width` property, so if you change the value, you can get different icon variants that will fit in well with your design. |