マッチカードMatchCardExperimental

The two-sided pairing detail: a LEFT entity and a RIGHT entity side by side with a center match score, plus a factor-by-factor breakdown and actions. The heart of every matching / recommendation / deal-pairing / compare console — 求貨求車 (荷物×空車), M&A (売り手×買い手), 補助金 (自社×制度), candidate×job, buyer×seller. ENTITY-AGNOSTIC: left and right are arbitrary identity nodes (pair with CompanyCell / PersonCell / anything), and the two sides may be DIFFERENT kinds (a company and a program). Distinct from RelationshipRow, which hardcodes two PersonCells (person⟷person) and has no score/factor region. left + right + score? + factors[] ({label,value,tone?,detail?}) + actions. RSC-safe except opt-in handlers in the slots.

プレビュー

協栄精密工業製造業・愛知
92%適合度
ものづくり補助金設備投資・上限1,250万円

申請要件の適合

  • 対象事業者中小・製造業 → 対象
  • 業種要件
  • 従業員規模48名 ≤ 上限
  • 設備投資要件見積追加が必要
  • 加点項目賃上げ表明あり

Props

表は横にスクロールできます
プロパティ初期値説明
left / rightReactNode-左右のエンティティ(CompanyCell/PersonCell/任意)。人前提でない=異なる種類でも可(会社と制度)。
scoreReactNode-中央の適合度/コネクタ(数値・Meter・Badge)。既定は ⟷。
factorsMatchFactor[]-要件/評価項目ごとの適合({ label, value, tone?, detail? })。
factorsLabelReactNode"適合の内訳"内訳の見出し。
actionsReactNode-末尾アクション(打診/申請/NDA)。
labelReactNode-アクセシブル名。
MatchFactor.label / valueReactNode-評価項目名・判定(◎○△×/Meter/テキスト)。
MatchFactor.tone"default" | "success" | "warning" | "destructive" | "muted""default"判定チップのトーン。
MatchFactor.detailReactNode-行下の詳細(自社 vs 制度 の値)。

Usage

import { MatchCard, CompanyCell, type MatchFactor } from "@gunjo/ui"

// Entity-agnostic — the two sides can be DIFFERENT kinds (a company × a subsidy program).
<MatchCard
  left={<CompanyCell name="協栄精密工業" secondary="製造業・愛知" />}
  right={<CompanyCell name="ものづくり補助金" secondary="設備投資・上限1,250万円" />}
  score={<span className="text-lg font-bold">92%</span>}
  factors={[
    { label: "対象事業者", value: "◎", tone: "success" },
    { label: "設備投資要件", value: "△", tone: "warning", detail: "見積追加が必要" },
  ]}
  actions={<Button variant="primary" size="sm">申請を準備する</Button>}
/>

使用コンポーネント