/** * Figma ↔ Code mapping for cf-card * * Figma component: "card" * @see https://www.figma.com/design/LPebgX2vf5Axd6yuo4umBE/CF.design--WIP-?node-id=484:22605 * * cf-card is a surface container with optional title, body, and action areas. * It supports a clickable state for interactive cards. */ export const figmaMapping = { figmaUrl: "https://www.figma.com/design/LPebgX2vf5Axd6yuo4umBE/CF.design--WIP-?node-id=484:22605", element: "cf-card", props: { clickable: { codeProp: "clickable", type: "boolean" }, }, slots: { header: 'slot="header" — card heading', default: "default slot — card body content", footer: 'slot="footer" — footer action area', }, // Sub-component mappings for tags used within cards tags: { "tag.action": { element: "cf-badge", note: "Status pills (Queued, Working, Link, Review, Alert, Login, Active, Done). Map State to variant + label.", props: { State: { codeProps: ["color", "variant"], values: { Queue: { color: "primary", variant: "solid" }, Progress: { color: "primary", variant: "solid" }, Link: { color: "primary", variant: "solid" }, Review: { color: "neutral", variant: "outline" }, Alert: { color: "danger", variant: "solid" }, Login: { color: "neutral", variant: "solid" }, Active: { color: "neutral", variant: "solid" }, Done: { color: "neutral", variant: "solid" }, }, }, }, example: `Alert Queued`, }, "tag.category": { element: "cf-chip", note: "Category label pill", example: ``, }, }, unmapped: [], example: ` Card Title Card body content goes here. Action `, };
Card body content goes here.