0.0.30 • Published 1 year ago
@rodneylab/svelte-social-icons v0.0.30
svelte-social-icons
Social icons for Svelte. Based on react-social-icons by Jake Trent.
To install:
pnpm install @rodneylab/svelte-social-icons
Alternatively, replace pnpm
with npm
or run yarn add @rodneylab/svelte-social-icons
.
To use:
<script>
import SocialIcons from '@rodneylab/svelte-social-icons';
</script>
<SocialIcons network="github" alt=""/>
<SocialIcons network="twitter" alt=""/>
- Change icon size:
<SocialIcons alt="" network="github" width="24" height="24" />
- Change foreground and background colours:
<SocialIcons alt="" network="github" fgColor="#eeeeee" bgColor="#111111" />
Props
Property | Type | Required | Description |
---|---|---|---|
network | Network | Yes | Override which network icon to render. You can import the type if you need it in TypeScript: import type { Network } from '@rodneylab/svelte-social-icons'; |
bgColor | String | No | Override the background fill colour (defaults to social network's color). |
fgColor | String | No | Override the icon's fill colour (defaults to transparent). |
style | Object | No | Override style properties passed to the rendered anchor tag. |
0.0.30
1 year ago
0.0.29
1 year ago
0.0.28
2 years ago
0.0.27
2 years ago
0.0.26
2 years ago
0.0.25
2 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.17
4 years ago
0.0.13
4 years ago
0.0.14
4 years ago
0.0.15
4 years ago
0.0.16
4 years ago
0.0.10
4 years ago
0.0.11
4 years ago
0.0.12
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.3
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago