18Switch language to English

Share

السابقالتالي

A social sharing card with multiple platform options and link copying.

import { CardsShare } from "@/components/atom/share"

// Cards read their copy from the site dictionary; the demo passes an empty one.
const dictionary = { locale: "en", cards: {} } as any

export default function ShareDemo() {
  return (
    <>
      <CardsShare dictionary={dictionary} />
    </>
  )
}

Installation

pnpm dlx shadcn@latest add @codebase/share

Usage

import { CardsShare } from "@/components/atom/share"
<CardsShare />