0.0.28 • Published 10 months ago
@rodneylab/svelte-social-icons v0.0.28
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.28
10 months ago
0.0.27
11 months ago
0.0.26
11 months ago
0.0.25
1 year ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.17
2 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.3
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago