4
Sponsor

Socials With Labels

social links with stacked or inline labels

import { SocialsWithLabels } from "@/components/email/socials-with-labels";

export function SocialsWithLabelsStackedDemo() {
  return (
    <SocialsWithLabels {...SocialsWithLabels.PreviewProps} variant="stacked" />
  );
}

Installation

$ pnpm dlx shadcn@latest add @emailcn/socials-with-labels

Usage

import { SocialsWithLabels } from "@/components/email/socials-with-labels";
 
<SocialsWithLabels variant="inline" />;

Examples

Inline

import { SocialsWithLabels } from "@/components/email/socials-with-labels";

export function SocialsWithInlineLabelsDemo() {
  return (
    <SocialsWithLabels {...SocialsWithLabels.PreviewProps} variant="inline" />
  );
}

API Reference

PropTypeDefaultDescription
variant"stacked" | "inline""stacked"Label arrangement
itemsLabeledSocialItem[]iconsSocial links, labels, icons
titlestring"Connect with us"Section title
descriptionstringcopySupporting text
themeTailwindConfigdefaultThemeEmail theme configuration