Social Tag List

This is a Social Tag List component.

Installation

1. Dependencies

npm install clsx tailwind-merge framer-motion

2. Paste inside @/lib/utils.ts

import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: Parameters<typeof clsx>) {
  return twMerge(clsx(...inputs));
}

3. Copy Social Tag List Code

Loading...

Copy Social Tag List Code

SocialTagList Props

NameTypeRequiredDefaultDescription
childrenReact.ReactElement[]YesundefinedThe SocialTagItem components to display.
classNamestringNoundefinedAdditional class names for styling.

SocialTagItem Props

NameTypeRequiredDefaultDescription
labelstringYesundefinedThe label of the social tag.
idstringYesundefinedThe ID of the social tag.
linkstringYesundefinedThe link to navigate to when the tag is clicked.
classNamestringNoundefinedAdditional class names for styling.