| 1 | --- |
| 2 | name: icons |
| 3 | description: Using open-source icons in slides |
| 4 | --- |
| 5 | |
| 6 | # Icons |
| 7 | |
| 8 | Use any open-source icon directly in markdown. Powered by unplugin-icons and Iconify. |
| 9 | |
| 10 | ## Installation |
| 11 | |
| 12 | ```bash |
| 13 | pnpm add @iconify-json/[collection-name] |
| 14 | ``` |
| 15 | |
| 16 | ## Usage |
| 17 | |
| 18 | Use component syntax `<collection-icon-name />`: |
| 19 | |
| 20 | ```md |
| 21 | <mdi-account-circle /> |
| 22 | <carbon-badge /> |
| 23 | <uim-rocket /> |
| 24 | <logos-vue /> |
| 25 | ``` |
| 26 | |
| 27 | ## Popular Collections |
| 28 | |
| 29 | - `@iconify-json/mdi` - Material Design Icons |
| 30 | - `@iconify-json/carbon` - Carbon Design |
| 31 | - `@iconify-json/logos` - SVG Logos |
| 32 | - `@iconify-json/twemoji` - Twitter Emoji |
| 33 | |
| 34 | ## Styling |
| 35 | |
| 36 | Style like any HTML element: |
| 37 | |
| 38 | ```html |
| 39 | <uim-rocket class="text-3xl text-red-400 mx-2" /> |
| 40 | <uim-rocket class="text-3xl text-orange-400 animate-ping" /> |
| 41 | ``` |
| 42 | |
| 43 | ## Browse Icons |
| 44 | |
| 45 | - https://icones.js.org/ |
| 46 | - https://icon-sets.iconify.design/ |
| 47 |