# shareon shareon logo — the Postal Horn emoji > Lightweight, stylish and ethical share buttons - **Small.** Dependency-free. CSS+JS bundle is only 6 KB minified and gzipped. - **Stylish.** Uses official vector logos and colors with no visual mess. - **Ethical.** Embeds no tracking code. JS is required only for the setup. shareon demo screenshot --- Observe the live demo here: [shareon.js.org](https://shareon.js.org) ## Install Include the link to shareon's JS and CSS in your website: ```html ``` or install it via NPM use it in a JS file that you will bundle: ```sh npm install shareon # or yarn add shareon ``` ```js const shareon = require("shareon"); // or import shareon from "shareon"; ``` ## Initialization By default, shareon will initialize every button after page load. It also exports the `shareon` function, that will let you repopulate your buttons with updated information (for example, if you changed the page title): ```js // shareon auto-initializes window.title = "Cool new window title"; shareon(); ``` If you want to postpone the initialization, you can import the `noinit`-version of the package. You'll need to manually call the `shareon` function when you want the buttons to be initialized: ```html ``` or, if you're using Node: ```js const shareon = require("shareon/dist/noinit/shareon"); // or import shareon from "shareon/dist/noinit/shareon"; // do something important shareon(); ``` ## Usage > shareon was heavily inspired by [Likely](https://ilyabirman.net/projects/likely/), > and has a backwards-compatible API (excluding themes and sizes). Create a container with class `shareon` and populate it with elements, whose classes match the names of social networks: ```html
``` If you use ``, the buttons will get a `href`-attribute to them. In other cases they will get a listener on `click` event, so you can use `