Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@pmxt/components

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pmxt/components

Embeddable prediction market UI components built with React and Tailwind CSS

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
11
22.22%
Maintainers
1
Weekly downloads
 
Created
Source

@pmxt/components

Embeddable prediction market UI components built with React and Tailwind CSS.

Install

npm install @pmxt/components

Peer dependencies

Required:

  • react >= 18
  • react-dom >= 18
  • lightweight-charts ^5

Optional (only needed if you use wallet or framework-specific components):

  • wagmi ^2
  • @rainbow-me/rainbowkit ^2
  • next >= 14
  • canvas-confetti ^1

Setup

Tailwind CSS

Add the @source directive to your CSS entry file so Tailwind can detect the classes used by these components:

@import "tailwindcss";
@source "node_modules/@pmxt/components/dist";

CSS Variables

All components are themed through CSS custom properties. Define them on :root (or any ancestor element):

:root {
  /* Brand */
  --brand-primary: #00a36c;
  --brand-primary-hover: #008f5d;

  /* Backgrounds */
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f3f4f6;
  --bg-header: #ffffff;
  --bg-input: #f4f4f5;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Status */
  --color-live: #ef4444;
  --color-yes: #00a36c;
  --color-no: #ef4444;

  /* Shape */
  --radius-full: 9999px;
  --radius-card: 16px;
  --radius-btn: 9999px;
  --shadow-sm: none;
  --shadow-card: none;

  /* Typography */
  --font-primary: "Plus Jakarta Sans", sans-serif;
  --font-secondary: "Plus Jakarta Sans", sans-serif;
}

Override any variable to match your brand -- every component picks up the changes automatically.

Quick example

import { EventCard } from "@pmxt/components";

function App() {
  return (
    <EventCard
      title="Will BTC exceed $100k by July 2026?"
      imageUrl="/btc.png"
      outcomes={[
        { label: "Yes", probability: 0.72 },
        { label: "No", probability: 0.28 },
      ]}
    />
  );
}

Components

The package exports the following components:

ComponentDescription
EventCardCard with market image, title, and outcome sliders
MarketCardCompact card for a single binary market
MarketRow / OutcomeRowRow-based layouts for market lists
TradingWidgetFull trading interface (chart + order panel)
TradePanelStandalone order entry panel
OrderDrawerSlide-up order signing drawer (requires wagmi)
FundsModalDeposit / withdraw modal (requires wagmi)
LightweightChartTradingView Lightweight Charts wrapper
SparklineInline sparkline for price history
FeaturedCarouselHorizontally scrollable featured events
EventTableSortable table of events
ProfileButtonWallet connection button (requires rainbowkit)
SidebarSection / SidebarBannerListSidebar navigation primitives
ConnectionStatusWebSocket connection indicator

See COMPONENTS.md for the full visual catalog with props and usage examples.

Keywords

prediction-markets

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts