1.2.1 • Published 5 years ago

social-icon v1.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

dile-social-icon

Web component to display icons from the main social networks and communities, based on LitElement.

Go to DEMO page!

Usage

1) Install the npm package

npm i social-icon

2) Include the script of the component in your web page or application

<script type="module">
  import 'social-icon/dile-social-icon.js';
</script>

3) Use the web component

<dile-social-icon icon="facebook"></dile-social-icon>

The icon property is used to set the icon you want to show. There are icons from the main social networks and services.

Icons available

The icon property accepts the social icons listed bellow:

  • facebook
  • google
  • twitter
  • pinterest
  • linkedin
  • youtube
  • whatsapp
  • instagram
  • gmail
  • snapchat
  • github

Note that the name of the icon is allways in lowercase.

Custom styles

You can customize the icon styles using CSS Custom Styles.

Custom propertyDescriptionDefault
--dile-social-icon-colorIcon color#888
--dile-social-icon-sizeIcon size (this sets width & height to the same value)24px
1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago