solana-app-kit


solana-app-kit / components/thread/sections/SectionNftListing / default

Function: default()

default(__namedParameters): Element

Defined in: src/components/thread/sections/SectionNftListing.tsx:49

A component that renders an NFT listing card in a post section

Parameters

__namedParameters

SectionNftListingProps

Returns

Element

Component

Description

SectionNftListing displays detailed information about an NFT listing in a post. It fetches additional NFT data from the Tensor API and shows the NFT’s image, name, collection, price, last sale, and rarity information. The component handles loading states and errors gracefully.

Features:

  • NFT image display
  • Collection information
  • Price and last sale data
  • Rarity ranking
  • Loading states
  • Error handling
  • Responsive layout

Example

<SectionNftListing
  listingData={{
    mint: "mint_address_here",
    name: "Cool NFT #123",
    owner: "wallet_address_here",
    priceSol: 1.5
  }}
/>