NuxtLegoNuxtLego

Social Share

Primitive component to allow easy sharing for different social media providers.

Anatomy

<template>
  <LegoSocial>
    <LegoSocialLink />
    <LegoSocialFacebook />
    <LegoSocialTwitter text="Hello world!" />
    <LegoSocialLinkedIn text="Hello world!" />
    <LegoSocialReddit text="Hello world!" />
  </LegoSocial>
</template>

API Reference

Root

Wrapper that provide the information required for the child component.

PropDefaultTypesDescription
url-stringDefault to current route if not provided

Twitter, LinkedIn, Reddit

These 2 child component has extra props, as such:

PropDefaultTypesDescription
text-stringDefault text value when user click on sharing button