Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Commerce

Seller card

Commerce

Seller card React component for Tailwind CSS v4

ReviewsApp Download Section
Live props
Layout
variant
contactLayout
listingLayout
maxListings3
Appearance
size
radius
tone
color
ratingTone
Content
showStats
showRating
showContact
showFollow
showListings
compactStat
State
defaultFollowing
listingsLoading
Behavior
messageHref
callingCode
listingsHref
locale
Code
import { SellerCard } from "@/components/ui/seller-card"

<SellerCard />
  1. Home
  2. Components
  3. Commerce
  4. Seller card
Pro

Seller card React component for Tailwind CSS v4

v1.0.0·Added in 1.0.0

A React seller card for marketplaces: avatar, verified mark, stars, reply speed, a phone number to reveal, message, follow, more listings.

Tap the call button to show the seller's number: it fetches the full number (a spinner holds the button's width), the digits fade in, and the button turns into a real phone link, so the next tap dials. With a mouse a copy button appears beside the revealed number. If the number cannot be fetched, the button goes back to masked and a short message says so. Tap Message to start a conversation. Tap Follow to follow the seller: a check draws itself, and it rolls back if saving fails. The name opens the seller's profile; hover or focus it to see what was verified (on touch the same list sits in the stats). The compact row is one big tap target that opens the profile. The other listings are compact rows, or a rail you swipe (drag with a mouse, Left / Right while it has focus). Keyboard: Tab reaches the name, Follow, the call and message buttons, the listings and See all; Enter or Space activates, and focus stays on the call button when it becomes a link. The revealed number and errors are announced. In a narrow two-column bar the call button drops its icon so the digits fit.

Seller card is a Pro React component in the React commerce components category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add seller-card, together with Avatar, Badge, Button, Carousel, Copy Button and 12 more and the npm packages lucide-react and motion.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add seller-card

Seller card is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans

Usage

Import SellerCard from @/components/ui/seller-card.

import { SellerCard, type SellerData } from "@/components/ui/seller-card"

const mihai: SellerData = {
  id: "s-mihai",
  name: "Michael Reed",
  avatar: "/demo/mihai-ionescu.jpg",
  href: "/sellers/mihai-ionescu",
  type: "private",
  verified: { phone: true, identity: true },
  rating: 4.8,
  reviewCount: 126,
  memberSince: "2019-03-12",
  responseRate: 0.98,
  responseTime: 40,
  location: "Brooklyn",
  listingCount: 14,
  phone: "07700 900 •••",
}

export function ListingSidebar({ openChat }: { openChat: () => void }) {
  return (
    <SellerCard
      seller={mihai}
      callingCode="44"
      onRevealPhone={async () => {
        const response = await fetch("/api/listings/l01/phone", { method: "POST" })
        return (await response.json()).phone as string
      }}
      onMessage={openChat}
      listingsHref="/sellers/mihai-ionescu"
      labels={{ showNumber: "Reveal number", message: "Chat" }}
    />
  )
}

Props

  • seller*
    SellerData

    The seller: { id, name, avatar?, href?, type?: "private" | "business", companyName?, cui?, agent?, verified?: boolean | { phone?, identity?, company? }, rating? (0 to 5), reviewCount?, memberSince?, responseRate? (0 to 1), responseTime? (minutes), lastSeen?: time | "online", location?, listingCount?, phone? }.

  • variantdefault "card"
    "card" | "compact" | "inline"

    card: the side column of a detail page with stats, contact and listings. compact: avatar, name, rating, one stat and a chevron as one tappable row (the phone detail page). inline: a small avatar, the name, the verified mark and a star on one line, no surface.

  • sizedefault "md"
    "sm" | "md" | "lg"

    Avatar 40 / 48 / 64px in the card, the type scale, paddings and the contact buttons (md in sm, 48px lg otherwise).

  • radiusdefault "md"
    "sm" | "md" | "lg"

    The surface corner: 12 / 16 / 24px. The buttons and listing tiles inside follow it.

  • tonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The call button (solid) and the message button (soft of the same tone).

  • colordefault ""
    string

    Any CSS color for the contact buttons; replaces the tone.

  • ratingTonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The stars' fill. warning gives the classic amber stars.

  • showStatsdefault true
    boolean

    The card's facts: private or business (with the tax id), what was verified, member since, reply time, response rate, place, last activity, listing count.

  • showRatingdefault true
    boolean

    Stars, the value and the review count; a seller without reviews gets a "New seller" badge instead.

  • showContactdefault true
    boolean

    The call and message buttons (SellerContactActions) in the card.

  • showFollowdefault false
    boolean

    A Follow toggle in the card's header: icon only in a narrow card, with its label from 400px.

  • defaultFollowingdefault false
    boolean

    Starts followed (uncontrolled). Use following + onFollowingChange to control it.

  • following
    boolean

    The controlled follow state.

  • onFollowingChange
    (following: boolean) => (void | Promise<unknown>)

    Called on every toggle. Return a promise: a rejection rolls the toggle back and announces labels.followError.

  • onRevealPhone
    () => (string | Promise<string>)

    Show number fetches the full number (marketplaces log reveals). A spinner shows while it runs; a rejection returns the button to masked and says labels.revealError. Without it seller.phone is revealed on tap. The revealed number is kept per seller.id for the page's life, so a sticky contact bar shows it too.

  • onCall
    (phone: string) => void

    Replaces the tel: link of the revealed number (open a call sheet, log the call).

  • onMessage
    () => void

    The Message button. Without it and without messageHref there is no Message button.

  • messageHrefdefault ""
    string

    Makes Message a link to the conversation.

  • callingCodedefault ""
    string

    The country calling code for the tel: link: "44" turns 07700 900 123 into tel:+447700900123. Empty keeps the number as written.

  • contactLayoutdefault "auto"
    "row" | "stack" | "auto"

    Call and Message side by side, stacked, or auto: stacked while the card is under 400px wide (a sidebar, a phone), side by side above.

  • listings
    ListingData[]

    The seller's other listings (ListingData from listing-card), shown under the contact buttons.

  • showListingsdefault true
    boolean

    The listings section, when there are listings.

  • listingsHrefdefault ""
    string

    The "See all (14)" link beside the heading; the count is seller.listingCount.

  • listingLayoutdefault "compact"
    "compact" | "grid"

    Compact listing rows, or a swipeable rail of small grid cards with one photo each (no carousel inside a carousel).

  • maxListingsdefault 3
    number

    How many listings to show.

  • listingsLoadingdefault false
    boolean

    Skeleton rows in place of the listings while they load.

  • compactStatdefault "auto"
    "auto" | "lastSeen" | "memberSince" | "responseTime" | "location" | "listings"

    The one fact beside the rating in the compact row. auto: the last activity, else the reply time, the place, then member since.

  • onSelect
    (seller: SellerData) => void

    Without seller.href, the compact row and the name become buttons that call it.

  • now
    number | null

    The page's clock in ms for "Active 5 minutes ago". Defaults to a shared minute timer (useNow); null prints dates. A timestamp, so it stays out of the playground.

  • linkComponent
    (props: LinkComponentProps) => ReactNode

    The router link for the name, the compact row, Message, See all and the listings. Defaults to the LinkProvider's, then <a>.

  • localedefault ""
    string

    Numbers, dates and relative times. Empty uses the UIProvider locale, then the browser's.

  • labels
    Partial<SellerCardLabels>

    Every string, English by default (DEFAULT_SELLER_CARD_LABELS): verified, verifiedIdentity, verifiedPhone, verifiedCompany, business, private, newSeller, memberSince(date), responseRate(percent), responseTime(text), withinHour, withinDay, online, lastSeen(text), listings(n, formatted), reviews(n, formatted), rating(value), agent(name), cui, call, callSeller(name), showNumber, revealNumber(name), message, messageSeller(name), copyNumber, copiedNumber, revealed(phone), revealError, follow, following, followError, otherListings, seeAll(n, formatted), loadingListings, the hidden stat names (statType, statVerification, statMemberSince, statResponseTime, statResponseRate, statLocation, statActivity, statListings, statAgent) and listing (forwarded ListingCardLabels).

  • classNames
    Partial<Record<"header" | "avatar" | "name" | "verified" | "type" | "rating" | "stats" | "stat" | "contact" | "call" | "message" | "follow" | "listings", string>>

    Extra classes for the inner parts.

  • className
    string

    Extra classes for the root, merged last.

Parts

  • SellerContactActions

    component

    The call / message pair on its own, with the same reveal (shared per seller.id with every card on the page). It is what a listing page's sticky contact bar holds as its action. Props: { seller?, phone?, onRevealPhone?, onCall?, onMessage?, messageHref?, callingCode?, layout?: "row" | "stack" | "auto" = "row", size?: "sm" | "md" | "lg" = "lg", radius?, tone?, color?, showCopy? = true, linkComponent?, labels?, classNames? }.

  • maskPhone

    function

    Keeps the first `visible` digits (7) and the formatting: "0745 123 456" becomes "0745 123 •••". A masked number passes through. Signature: (phone: string, visible?: number) => string.

  • DEFAULT_SELLER_CARD_LABELS

    constant

    The English strings; spread them to translate a few. Type: SellerCardLabels.

Examples

Business seller

Green House Realty: a Business badge, the tax ID, the agent, amber stars and a rail of listings.

Compact row on a phone

One tappable row under the listing that opens the seller's profile.

Inline in a listing card

The small avatar, name, verified mark and stars as a card footer.

New seller

No reviews yet: a New seller badge instead of stars, joined in August 2026.

Reveal failing

The fetch fails, the button returns to masked and the error is shown and announced.

Contact actions in a bottom bar

SellerContactActions on its own, next to a favorite button, as a sticky contact bar holds it.

Follow and a brand call

An optimistic follow toggle whose check draws itself, and tone brand on the call button.

Dependencies

lucide-reactmotionavatarbadgebuttoncarouselcopy-buttonlisting-cardratingtooltipuse-controllable-stateuse-localedate-utilsmotionnavigationnumber-formatrelative-timetonesui-config

Files

  • components/ui/seller-card.tsx

FAQ

Is the React Seller card component free?

The preview, props and docs are free; copying the source needs a Pro plan. See plans.

How do I install Seller card?

Run npx wingo-ui@latest add seller-card. It also adds the Wingo UI items it builds on (Avatar, Badge, Button, Carousel, Copy Button and 12 more) and the npm packages lucide-react and motion. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/seller-card.

See also

Listing cardReviewsSticky CTA BarProduct galleryRatingAvatar

Used in

Listing Detail Page

More React commerce components

Quantity stepperPriceCoupon inputCategory pickerFilter panelPrice range
All 16 React commerce components
PreviousReviewsNext App Download Section

City bike, 26-inch wheels

$320, Negotiable

26" wheels · 3 gears · Frame M

Brooklyn, Park Slope·, Today at 2:32 PM

DeliveryUsed
City bike, 26-inch wheels, photo 1 of 1
Michael Reed
4.8(126)
Seller type
Private seller
Verification
Identity verified · Phone verified
Member since
Member since March 2019
Reply time
Usually replies within an hour
Response rate
98% response rate
Location
Brooklyn
Activity
Active 5 minutes ago

More from this seller

  • Sofa bed, 3 seats

    $450, Negotiable

    Boston, Back Bay·, Sep 22

    Sofa bed, 3 seats, photo 1 of 1
  • Toyota Corolla 2019, 51,000 mi

    $15,900, Negotiable

    Denver, Highlands·, Sep 20

    Toyota Corolla 2019, 51,000 mi, photo 1 of 1
  • Quechua 4-person tent

    Swap

    Denver, Baker·, Sep 18

    Quechua 4-person tent, photo 1 of 1

router: /listings/l01 · reveals: 0 · dials: tel:07700900123 · follow: none yet · chat: closed

Tap the call button to show the number, then tap again to dial