Package Exports
- @stacksjs/iconify-typcn
Readme
@stacksjs/iconify-typcn
Typicons icons for stx from Iconify.
Installation
bun add @stacksjs/iconify-typcn
Usage
In stx templates
<script>
import { home } from '@stacksjs/iconify-typcn'
import { renderIcon } from '@stacksjs/iconify-core'
export const homeIcon = renderIcon(home, { size: 24, color: 'currentColor' })
</script>
<div class="icon">
{!! homeIcon !!}
</div>
In TypeScript/JavaScript
import { home, account, settings } from '@stacksjs/iconify-typcn'
import { renderIcon } from '@stacksjs/iconify-core'
const svg = renderIcon(home, {
size: 24,
color: '#000000',
})
Available Icons
This package contains 336 icons from Typicons.
License
CC BY-SA 4.0
License: https://creativecommons.org/licenses/by-sa/4.0/
Credits
- Icons: Stephen Hutchings (https://github.com/stephenhutchings/typicons.font)
- Iconify: https://iconify.design/