0.0.31 • Published 2 years ago
@rodneylab/svelte-social-icons v0.0.31
svelte-social-icons
Social icons for Svelte. Based on react-social-icons by Jake Trent.
To install:
pnpm install @rodneylab/svelte-social-iconsAlternatively, 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.31
2 years ago
0.0.30
2 years ago
0.0.29
2 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
4 years ago
0.0.23
4 years ago
0.0.22
4 years ago
0.0.21
4 years ago
0.0.20
4 years ago
0.0.18
4 years ago
0.0.19
4 years ago
0.0.17
5 years ago
0.0.13
5 years ago
0.0.14
5 years ago
0.0.15
5 years ago
0.0.16
5 years ago
0.0.10
5 years ago
0.0.11
5 years ago
0.0.12
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.3
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago