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.
Prop | Default | Types | Description |
url | - | string | Default to current route if not provided |
Twitter, LinkedIn, Reddit
These 2 child component has extra props, as such:
Prop | Default | Types | Description |
text | - | string | Default text value when user click on sharing button |