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

Listing card

Commerce

Listing card React component for Tailwind CSS v4

Filter panelListing grid
Live props
Layout
layout
maxImages5
Appearance
variant
size
radius
imageAspect
showDots
showArrows
showFavorite
favoriteTone
promotedStyle
promotedTone
State
defaultFavorite
Content
showBadges
showAttributes
showSeller
timeFormat
locale
Behavior
priority
href
Code
import { ListingCard } from "@/components/ui/listing-card"

<ListingCard />
  1. Home
  2. Components
  3. Commerce
  4. Listing card
Pro

Listing card React component for Tailwind CSS v4

v1.0.0·Added in 1.0.0

A React listing card for marketplaces: swipeable photos, price, place and time, badges and a heart, in grid, list and compact layouts.

Tap or click anywhere on the card to open the listing: the title is one link stretched over the whole card, so long-press and middle-click give the native link menu. Swipe the photos sideways on a phone (vertical scrolling always wins, and a swipe never opens the listing); with a mouse, drag them or use the arrows that appear on hover, and the photo zooms in a touch. Tap the heart to save the listing: it pops with a small burst, and rolls back with a shake if saving fails. Keyboard: Tab meets the title link, the photo arrows (they show while the card holds focus) and the heart once each; Left / Right change the photo while focus is on the photo's controls; Enter opens the listing, Space or Enter toggles the heart. Dots under the photo show where you are (at most five, sliding along); a camera chip tells how many photos there are when not all of them are in the card. The first photo is a plain image until you touch, hover or focus it, so a grid of 48 cards stays light; under reduced motion the photo does not zoom.

Listing 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 listing-card, together with Avatar, Badge, Card, Carousel, Favorite button and 10 more and the npm package lucide-react.

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 listing-card

Listing 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 ListingCard from @/components/ui/listing-card.

import { ListingCard, type ListingData } from "@/components/ui/listing-card"

const bike: ListingData = {
  id: "l01",
  title: "Trek FX 2 city bike",
  href: "/listings/l01",
  images: ["/demo/bicycle.jpg"],
  price: 280,
  currency: "USD",
  priceType: "negotiable",
  location: "Portland, Pearl District",
  postedAt: "2026-09-24T14:32:00",
  delivery: true,
  condition: "used",
  seller: { name: "Daniel Reed", verified: true, rating: 4.8 },
}

export function SearchResult({ onSave }: { onSave: (id: string, saved: boolean) => Promise<void> }) {
  return (
    <ListingCard
      listing={bike}
      size="sm"
      showSeller
      locale="en-US"
      onFavoriteChange={(saved, listing) => onSave(listing.id, saved)}
      labels={{ delivery: "Ships", price: { negotiable: "OBO" } }}
    />
  )
}

Props

  • listing*
    ListingData

    The ad: { id, title, href?, images?: (string | { src, alt?, width?, height? })[], price (null: on request), currency?, compareAtPrice?, priceType?, priceSuffix?, unit?: { quantity, unit }, location?, distanceKm?, postedAt?, promoted?, delivery?, condition?: "new" | "used", attributes?: string[], badges?: { label, tone?, icon? }[], seller?: { name, avatar?, business?, verified?, rating? }, status?: "active" | "reserved" | "sold" | "expired", favorite?, favoriteCount? }.

  • layoutdefault "grid"
    "grid" | "list" | "compact"

    grid: the photo on top (result grids). list: the photo at the start, a 112px square while the card is narrow and 240px wide in imageAspect once the card is 560px wide (search results). compact: a 64px thumbnail row with no carousel and no distance (recently viewed, a seller's other listings). ListingCardSkeleton (see Parts) has the same layouts for loading states.

  • variantdefault "elevated"
    "elevated" | "outline" | "soft" | "ghost"

    The card surfaces: a raised panel, a hairline frame or the flat gray tile. ghost has no surface: a rounded photo with the text under it, like a fashion grid.

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

    Paddings, title and price size. sm is for two-column phone grids, lg for a featured listing.

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

    Card corners: 12 / 16 / 24px. The photo of a list row or a ghost card takes the matching inner corner.

  • imageAspectdefault "4/3"
    "1/1" | "4/3" | "3/2" | "16/10" | "3/4"

    The photo box in grid and list layouts (list rows stay square on phones). 3/4 suits fashion, 16/10 cars and homes.

  • maxImagesdefault 5
    number

    Photos in the card's carousel. 1 shows a single photo with no swipe: use it for cards inside horizontal rails, which must never nest a carousel. When the listing has more photos, a camera chip shows the real total.

  • showDotsdefault true
    boolean

    Dots under the photo (at most five, sliding along with the photo), over a soft shade so they read on any image.

  • showArrowsdefault true
    boolean

    Previous / next buttons on the photo. They appear while the card is hovered or holds focus, on fine pointers only (phones swipe).

  • showFavoritedefault true
    boolean

    The heart: round glass on the photo in the grid layout, a plain icon button at the end of list and compact rows.

  • defaultFavoritedefault false
    boolean

    Starts saved (uncontrolled). Falls back to listing.favorite.

  • favorite
    boolean

    Controlled saved state; pair it with onFavoriteChange.

  • onFavoriteChange
    ((favorite: boolean, listing: ListingData) => void | Promise<unknown>)

    Called when the heart toggles. Return a promise to keep the heart in its new state while it is pending; a rejection rolls it back, shakes it and announces the error.

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

    The saved heart's color. Neutral is white on photos and black / white elsewhere; danger gives the classic red heart.

  • showBadgesdefault true
    boolean

    The promoted chip on the photo and the small badges under the text: delivery, new or used, business seller and listing.badges.

  • showAttributesdefault true
    boolean

    The attributes line ("2019 · 51,000 mi · Gasoline"): one line in grids, up to two in list rows.

  • showSellerdefault false
    boolean

    The seller line: a small avatar, the name, a check when verified and the rating. In grids it sits at the bottom, over a hairline.

  • promotedStyledefault "badge"
    "badge" | "ring" | "both"

    How a promoted listing stands out: a labelled chip on the photo, a 2px ring in promotedTone around the card, or both.

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

    The promoted chip and ring color. Promotion is a status, so it defaults to the amber warning tone; the chip always says it in words.

  • timeFormatdefault "day"
    "day" | "relative" | "date"

    day: "Today at 2:32 PM", "Yesterday at 9:10 AM", then "Sep 22" this year and the full date before. relative: "2 hours ago". date: the short numeric date. The full date and time is in the tooltip. formatListingTime (see Parts) prints the same text outside the card.

  • prioritydefault false
    boolean

    Loads the first photo eagerly with high fetch priority. Set it on the first row of a grid; every other photo loads lazily.

  • localedefault ""
    string

    Formats the price, distance and time ("$1,200", "4.2 km", "2:32 PM" in en-US). Empty uses the UIProvider locale, then the page.

  • hrefdefault ""
    string

    Where the card leads; empty uses listing.href. Rendered through linkComponent, so a Next.js Link keeps client navigation. The playground's pretend router prints it.

  • onSelect
    (listing: ListingData) => void

    Without an href, the title becomes a button that calls it (and a click anywhere on the card does too). Without both, the card is not interactive.

  • actions
    ReactNode

    Controls at the top end of the text ("⋯" on your own listings, an edit button). They sit above the stretched link, so a click on them never opens the listing.

  • nowdefault "useNow()"
    number | null

    The reference time in ms for "Today at 2:32 PM". Pass the page's clock (one useNow() in the grid) so the cards re-render with it; without it every card on the page shares one minute timer (not one each). null prints dates.

  • linkComponent
    (props: LinkComponentProps) => ReactNode

    The router link for the title and the photos. Defaults to the one given to LinkProvider (lib/navigation), else a plain <a>.

  • labels
    Partial<ListingCardLabels>

    Copy, English by default: promoted, delivery, new, used, business, verified, reserved, sold, expired, today, yesterday, at, photo(title, i, n) (alt text), photos(n), noImage, distance(formatted), previous, next, rating(formatted), plus price (forwarded PriceLabels) and favorite (forwarded FavoriteButtonLabels). Pass only the keys you translate.

  • classNames
    Partial<Record<"media" | "image" | "carousel" | "dots" | "favorite" | "body" | "title" | "price" | "attributes" | "meta" | "tags" | "seller" | "actions" | "status", string>>

    Extra classes for the inner parts.

  • className
    string

    Extra classes for the card (the <article>), merged last.

Parts

  • ListingCardSkeleton

    component

    The loading placeholder with the card's exact shape: the photo block, a price bar, the title lines and a meta line. Takes layout, variant, size, radius and imageAspect like the card.

    • layoutdefault "grid"
      "grid" | "list" | "compact"

      Matches the card layout it stands in for.

    • variantdefault "elevated"
      "elevated" | "outline" | "soft" | "ghost"

      Matches the card surface.

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

      Matches the card size.

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

      Matches the card corners.

    • imageAspectdefault "4/3"
      "1/1" | "4/3" | "3/2" | "16/10" | "3/4"

      Aspect ratio of the photo block.

    • linesdefault 3
      number

      Text bars under the price: the title lines, then the meta line.

    • announcedefault true
      boolean

      Wraps it in a role="status" region named by label. Turn off inside a grid that announces its own loading.

    • labeldefault "Loading"
      string

      The accessible name of the status region.

  • formatListingTime

    function

    The card's time text as a function, for a detail page or a table: formatListingTime(value, { now, locale?, labels?, format? }) returns "Today at 2:32 PM", "Yesterday at 9:10 AM", "Sep 22" or the full date. With now null it prints the date, so server and browser agree.

  • DEFAULT_LISTING_CARD_LABELS

    constant

    The English copy of the card. Spread it into labels when you translate only a few keys.

  • ListingData

    type

    One listing: id, title, href, images, price, currency, priceType, location, distanceKm, postedAt, promoted, delivery, condition, attributes, badges, status and an optional seller.

Examples

Grid

l01 to l08: two columns on phones with size sm, four on desktop, the first row loads eagerly.

List

Search-result rows with the attributes and the seller line; a square photo on phones.

Compact

A “Recently viewed” rail: compact rows with one photo each, so no carousel nests in the rail.

Promoted

The same promoted listing with the chip, the ring and both.

States

Reserved, sold (the photo goes gray) and expired (the whole card dims), each with its chip.

Skeletons

Four skeletons with the card's shape, then the cards after 1.4s.

Real estate

A large card with six photos, the unit price and its EUR twin.

Ghost variant

No surface, a 3:4 photo and a red heart: a fashion grid, two columns on phones, with a ⋯ action on your own listing.

Dependencies

lucide-reactavatarbadgecardcarouselfavorite-buttonpriceskeletonuse-localeuse-media-querydate-utilsnavigationnumber-formatrelative-timetonesui-config

Files

  • components/ui/listing-card.tsx

FAQ

Is the React Listing card component free?

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

How do I install Listing card?

Run npx wingo-ui@latest add listing-card. It also adds the Wingo UI items it builds on (Avatar, Badge, Card, Carousel, Favorite button and 10 more) and the npm package lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/listing-card.

How does Listing card behave on phones?

Swipe the photos sideways on a phone (vertical scrolling always wins, and a swipe never opens the listing); with a mouse, drag them or use the arrows that appear on hover, and the photo zooms in a touch.

See also

PriceFavorite buttonCardCarouselSkeleton

Used in

Marketplace Home PageMobile App HomeListing gridSeller cardCheckout PageListing Detail PageMarketplace Search PagePost Listing Wizard

More React commerce components

Product galleryOrder trackerCheckout stepsCart drawerPricing tableReviews
All 16 React commerce components

Articles using this component

  • Nextjs Real Estate Template: Search, Map and Mortgage

    Build it: screens and apps · Nov 6, 2026 · 10 min read

  • React Marketplace Template That Works Like an App

    Build it: screens and apps · Oct 16, 2026 · 15 min read

  • React Swipe Cards: A Tinder-Style Deck With Undo

    Mobile UI in React · Oct 13, 2026 · 9 min read

PreviousFilter panelNext Listing grid

Trek FX 2 city bike

$280, Negotiable

28" wheels · 3 speeds · Frame M

Portland, Pearl District · , 4.2 km away·, Today at 2:32 PM

DeliveryUsed
Trek FX 2 city bike, photo 1 of 1

2-bedroom apartment, split floor plan

$489,000, $843/sq ft

2 bedrooms · 580 sq ft · Floor 3/4 · Split plan

Brooklyn, Park Slope · , 850 m away·, Yesterday at 9:10 AM

Business
The building, the side facing the park
Promoted
66 photos

router: /listings · favorite: none yet · maxImages 5 · first photo lazy

Swipe or drag the photos; tap anywhere else to open the listing