@bucketh/icons
v1.2.1
Published
Material Symbols as Svelte components
Downloads
5
Maintainers
Readme
Icons Bucketh
All svg of Material Symbols as Svelte components
Installation
You can install this package with your favorite package manager
# pnpm
pnpm i @bucketh/ui
# yarn
yarn add @bucketh/ui
# npm
npm install @bucketh/ui
Usage
<script lang="ts">
import ChatIcon from '@bucketh/icons/ChatIcon.svelte';
import CloudIcon from '@bucketh/icons/CloudIcon.svelte';
</script>
<div>
<ChatIcon />
<ChatIcon filled />
</div>
<div style="color: red">
<CloudIcon />
<CloudIcon filled />
</div>
Search icons
All material symbols are here but in pascal case and "Icon" suffixed (for example SettingsIcon
or InfoIcon
).
For named icons starting with number, added "Symbol" prefix, for example Symbol4kIcon
and Symbol123Icon
.
The icons ending in "-fill" are considered as variant and can be used with filled
prop, for example home
is <HomeIcon />
and home-fill
is <HomeIcon filled />
(the svg were taken from @material-symbols/svg-400)