Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Polydile/social-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moved

This package has moved and is now available at @dile/ui. Please update your dependencies. This repository is no longer maintained. You can read the documentation at Dile Components.

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
  1. Include the script of the component in your web page or application
<script type="module">
  import 'social-icon/dile-social-icon.js';
</script>
  1. 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 property Description Default
--dile-social-icon-color Icon color #888
--dile-social-icon-size Icon size (this sets width & height to the same value) 24px

About

Web component to display social icons, based on LitElement

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors