Jayden@jayden · 3h
Just shipped dark mode for our dashboard using one set of CSS variables. Took an afternoon, not a sprint.
$ pnpm dlx shadcn@latest add @synccn/post-cardFirst time in this project? Connect synccn with one command.
import { PostCard } from "@/components/ui/cards";<PostCard name="Jayden" handle="@jayden" likes={1284}>…</PostCard>Generated from the component's TypeScript types, so it always matches the code.
Social post with like, repost and share actions that update their counts.
stringAuthor name.
stringAuthor username.
stringRelative time, e.g. 3h.
React.ReactNodeImage or video under the text.
numberDefault 0
Starting like count.
numberDefault 0
Starting repost count.
numberDefault 0
Reply count.
React.ReactNodeContent to render.
stringExtra classes for the root element.
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
AvatarHelpers
npm packages
From the source
Read from this component's code when the site builds, so it can't drift.