Docs

Social Icons

Customizable social media icons with color and monochrome variants, supporting X, LinkedIn, Instagram, and TikTok with built-in dark mode theming.

Overview

The Social Icons component provides both individual social media icons (SocialIcon) and grouped collections (SocialIcons) with customizable styling. It supports five major platforms: GitHub, X (formerly Twitter), LinkedIn, Instagram, and TikTok. The component offers both colorful brand-accurate icons and monochrome versions that automatically adapt to your theme's color scheme.

Perfect for footers, contact sections, author profiles, and any place where you need to display social media links with consistent, professional styling.

Installation

pnpm dlx shadcn@latest add https://deltacomponents.dev/r/social-icons.json

Usage

Individual Social Icon

import { SocialIcon } from "@/registry/components/social-icons"
export default function Example() {
return (
<SocialIcon
platform="x"
variant="color"
size={32}
href="https://x.com/yourhandle"
/>
)
}

Social Icons Group

import { SocialIcons } from "@/registry/components/social-icons"
export default function Example() {
const socialLinks = [
{ platform: "github", href: "https://github.com/yourusername" },
{ platform: "x", href: "https://x.com/yourhandle" },
{ platform: "linkedin", href: "https://linkedin.com/in/yourprofile" },
{ platform: "instagram", href: "https://instagram.com/yourhandle" },
{ platform: "tiktok", href: "https://tiktok.com/@yourhandle" },
]
return <SocialIcons icons={socialLinks} variant="color" size={28} gap={16} />
}

API Reference

SocialIcon Props

NameTypeDefaultDescription
platform"github" | "x" | "linkedin" | "instagram" | "tiktok"-The social media platform to display
variant"color" | "monochrome""color"Icon style - color shows brand colors, monochrome adapts to theme
sizenumber24Icon size in pixels
hrefstring-Optional URL to link to. When provided, wraps icon in an anchor tag
classNamestring-Additional CSS classes

SocialIcons Props

NameTypeDefaultDescription
iconsArray<{ platform: string; href?: string }>-Array of social platform configurations
variant"color" | "monochrome""color"Icon style applied to all icons in the group
sizenumber24Icon size in pixels applied to all icons
gapnumber16Space between icons in pixels
classNamestring-Additional CSS classes for the container

Examples

Color Variant

Monochrome Variant