Skip to content

Social follow

The Social Follow component displays a collection of social media channels and store badges. Social media channels are rendered as icon buttons, while store badges use platform badge styles.

  • CSS

Maintained by Platform

Ready to use

The Social Follow component displays a collection of social media channels and store badges. Social media channels are rendered as icon buttons, while store badges use platform badge styles.

Import the SocialFollow component from @tmedxp/aem-react-components.

If both socialFollowItems and storeBadges are empty, the component does not render.

Prop Type Description Required
socialFollowItems SocialFollowItem[] Collection of social media channels to display.
storeBadges StoreBadge[] Collection of store badges to display.
id string Unique identifier applied to the root element.
Prop Type Description Required
link string Destination URL for the social media channel. Opens in a new tab.
label string | null Label used for the link title and accessible name. If not provided, the channel type is used.
type SocialFollowType Social media platform to display.
type SocialFollowType =
'TikTok' | 'Youtube' | 'Facebook' | 'X' | 'LinkedIn' | 'Instagram';
Prop Type Description Required
link string Destination URL for the social media channel. Opens in a new tab.
label string | null Label used for the link title and accessible name. If not provided, the channel type is used.
type SocialFollowType Social media platform to display.
type StoreBadgeType =
'app-store' | 'google-play' | 'spotify' | 'apple-podcasts';
import { SocialFollow } from '@tmedxp/aem-react-components';
const SocialFollowExample = () => {
return (
<SocialFollow
socialFollowItems={[
{
type: 'Facebook',
link: 'https://www.facebook.com/toyota',
label: 'Follow us on Facebook',
},
{
type: 'Instagram',
link: 'https://www.instagram.com/toyota',
label: 'Follow us on Instagram',
},
]}
storeBadges={[
{
type: 'app-store',
link: 'https://apps.apple.com',
label: 'Download on the App Store',
},
{
type: 'google-play',
link: 'https://play.google.com/store',
label: 'Get it on Google Play',
},
]}
/>
);
};
export { SocialFollowExample };