AddToSite

Customize

Customize

Every option has a page, and every page runs the thing it describes. The code on each one is the markup that produced the buttons above it, so what you copy is what you saw.

Popular

The buttons

What gets shared

Behind the scenes

Every option

Set window.ats_config before the widget script runs. Every key is optional.

KeyTypeWhat it does
num_servicesnumberMaximum buttons rendered inline. The rest move into the More menu.
langstringInterface language for the menu and labels. Only "en" ships today.
trackbooleanSet false to send no share pings at all.
themestring"light" or "dark" for the share sheet. Left unset it follows the reader’s operating system.
mastodon_instancestringWhich instance the Mastodon button posts through. Defaults to mastodon.social.
countersbooleanShow a share count on each button. Off by default, because a row of zeroes on launch day helps nobody.
analyticsbooleanSet false to stop handing share events to gtag or dataLayer. On by default, but it does nothing unless your page already runs one of them.
apistringPoint the counting endpoints at your own backend. Only needed if you self-host.
overlaysbooleanShow a share button over images on hover. Loads a small extra file, and only when switched on.
overlay_min_sizenumberSmallest image, in pixels, that gets an overlay. Defaults to 200, which keeps avatars and icons clear of it.
overlay_positionstringWhich corner the button sits in: top-left, top-right, bottom-left or bottom-right.

Class names you can style

ClassApplies to
.ats_kitThe container holding a row of buttons
.ats_buttonEvery button, whichever service
.ats_button_<service>One specific service
.ats_ddThe More button
.ats_labelThe text beside an icon
.ats_menuThe share sheet panel