4
Sponsor

Socials With Tile Labels

social tiles with stacked or inline labels

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

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

Installation

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

Usage

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

Examples

Inline

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

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

API Reference

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