CraftUI

Marketplace

A store page: cards with a picture, creator, rating and price, with search, a category filter, sorting and pages.

Marketplace

Results (12)

  • By Gemfall Studios

    Rated 3.8 out of 5490 coins
  • By Brickwork

    Rated 4.5 out of 5990 coins
  • By Moss & Co

    Rated 4.0 out of 51,340 coins
  • By Gemfall Studios

    Rated 4.7 out of 51,510 coins
  • By Brickwork

    Rated 4.2 out of 5Owned
  • By Moss & Co

    Rated 4.9 out of 5490 coins
  • By Gemfall Studios

    Rated 4.4 out of 5990 coins
  • By Brickwork

    Rated 3.9 out of 51,340 coins
Open on a page of its own

In the style of Ore UI's marketplace screens.

Installation

npx shadcn@latest add @runqora/craft-marketplace

Usage

import { Marketplace } from "@/components/craft/blocks/marketplace";

<Marketplace
  categories={[{ label: "Worlds", value: "worlds" }]}
  onSelect={(product) => openProduct(product.id)}
  products={products}
/>;

Props

Marketplace

Prop

Type

Accessibility

  • Each card opens through a button named after the product.
  • Ratings and prices are read in words, such as "Rated 4.5 out of 5" and "1,340 coins".
  • The pages are links in a navigation landmark, with the current page marked.

Customization

The coin is a plain drawing: swap CoinIcon for your store's currency. The block keeps only what's on screen, such as the search text. Your data comes in through props, and every action calls one of your handlers, so it works with any backend. Every screen fills its frame, so give it a height, such as h-dvh for a whole page.

Dependencies

  • craft-badge, craft-input, craft-pagination, craft-screen and craft-select
  • shadcn's utils, and craft-theme

Source