{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card",
  "title": "Card",
  "description": "Astro card sections with shared spacing, framed layouts, and optional actions.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/card/card-action.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"card-action\" class={cn(\"col-start-2 row-span-2 row-start-1 inline-flex self-start justify-self-end\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-action.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-content.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-content\"\n  class={cn(\"flex flex-1 flex-col gap-3 p-(--card-spacing) in-[[data-slot=card]:has(>[data-slot=card-footer]:not(.border-t))]:pb-0 in-[[data-slot=card]:has(>[data-slot=card-header]:not(.border-b))]:pt-0\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-content.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-description.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-description\"\n  class={cn(\"text-muted-foreground text-sm\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-footer.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"card-footer\" class={cn(\"flex items-center p-(--card-spacing) in-[[data-slot=card]:has(>[data-slot=card-content])]:pt-[calc(var(--card-spacing)*2/3)]\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-footer.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame-action.astro",
      "content": "---\n/**\n * Header action for a framed card. Place it after the title and description.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-frame-action\"\n  class={cn(\n    \"col-start-2 inline-flex self-center justify-self-end nth-3:row-span-2 nth-3:row-start-1\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame-action.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame-description.astro",
      "content": "---\n/**\n * Supporting text under a framed card title.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-frame-description\"\n  class={cn(\"text-muted-foreground self-center text-sm\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame-footer.astro",
      "content": "---\n/**\n * Footer band for a framed card. Body actions stay in CardFooter.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-frame-footer\"\n  class={cn(\"px-(--card-spacing) py-4\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame-footer.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame-header.astro",
      "content": "---\n/**\n * Header grid for a framed card.\n * An action in the third slot sits on the right.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-frame-header\"\n  class={cn(\n    \"relative grid auto-rows-min grid-rows-[auto_auto] items-start gap-x-4 px-(--card-spacing) py-4 has-data-[slot=card-frame-action]:grid-cols-[1fr_auto]\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame-header.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame-title.astro",
      "content": "---\n/**\n * Title for a framed card header. Size matches the Coss frame title.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-frame-title\"\n  class={cn(\"self-center text-sm font-semibold\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-frame.astro",
      "content": "---\n/**\n * Framed card shell from Coss UI.\n * The muted fill sits on a pseudo-element so the inner card can clip into the border.\n */\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\nimport type { CardFrameProps } from \"./types.ts\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }> &\n  CardFrameProps\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n  data-slot=\"card-frame\"\n  class={cn(\n    \"text-card-foreground bg-card before:bg-muted/72 relative flex flex-col rounded-2xl border shadow-xs/5 [--card-spacing:--spacing(6)] [--clip-bottom:-1rem] [--clip-top:-1rem] not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=table-container]:overflow-hidden *:data-[slot=card]:-m-px *:data-[slot=card]:bg-clip-padding *:data-[slot=card]:shadow-none *:data-[slot=card]:[clip-path:inset(var(--clip-top)_1px_var(--clip-bottom)_1px_round_calc(var(--radius-2xl)-1px))] *:not-first:data-[slot=card]:rounded-t-xl *:not-last:data-[slot=card]:rounded-b-xl *:data-[slot=card]:before:hidden *:not-first:data-[slot=card]:before:rounded-t-[calc(var(--radius-xl)-1px)] *:not-last:data-[slot=card]:before:rounded-b-[calc(var(--radius-xl)-1px)] *:data-[slot=card]:first:[--clip-top:1px] *:data-[slot=card]:last:[--clip-bottom:1px] *:data-[slot=table-container]:-m-px *:data-[slot=table-container]:w-[calc(100%+2px)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-frame.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-header.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"card-header\"\n  class={cn(\"grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 p-(--card-spacing) in-[[data-slot=card]:has(>[data-slot=card-content])]:pb-[calc(var(--card-spacing)*2/3)] has-data-[slot=card-action]:grid-cols-[1fr_auto] group/card-header\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-header.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card-title.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"card-title\" class={cn(\"font-heading text-lg leading-none font-semibold group-data-[size=sm]/card:text-base\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/card.astro",
      "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\nimport type { CardProps } from \"./types.ts\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }> & CardProps\n\nconst {\n  as: Tag = \"div\",\n  class: className,\n  size = \"default\",\n  ...props\n} = Astro.props\n---\n\n<Tag\n  data-slot=\"card\"\n  data-size={size}\n  class={cn(\"font-sans bg-card text-card-foreground relative flex flex-col overflow-hidden rounded-2xl border shadow-xs/5 [--card-spacing:--spacing(6)] not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] *:[img:first-child]:rounded-t-2xl *:[img:last-child]:rounded-b-2xl group/card\", className)}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/card.astro"
    },
    {
      "path": "packages/ui/src/components/ui/card/index.ts",
      "content": "export { default as Card } from './card.astro'\nexport type { CardFrameProps, CardProps } from './types.ts'\nexport { default as CardAction } from './card-action.astro'\nexport { default as CardContent } from './card-content.astro'\nexport { default as CardDescription } from './card-description.astro'\nexport { default as CardFooter } from './card-footer.astro'\nexport { default as CardFrame } from './card-frame.astro'\nexport { default as CardFrameAction } from './card-frame-action.astro'\nexport { default as CardFrameDescription } from './card-frame-description.astro'\nexport { default as CardFrameFooter } from './card-frame-footer.astro'\nexport { default as CardFrameHeader } from './card-frame-header.astro'\nexport { default as CardFrameTitle } from './card-frame-title.astro'\nexport { default as CardHeader } from './card-header.astro'\nexport { default as CardTitle } from './card-title.astro'\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/index.ts"
    },
    {
      "path": "packages/ui/src/components/ui/card/types.ts",
      "content": "import type { HTMLTag } from 'astro/types'\n\n/** Root card container spacing and polymorphic element. */\nexport interface CardProps {\n    /**\n     * The HTML tag for the card root.\n     *\n     * @default 'div'\n     */\n    as?: HTMLTag\n    /**\n     * Section inset scale through `--card-spacing`.\n     *\n     * @default 'default'\n     */\n    size?: 'default' | 'sm'\n}\n\n/** Framed card shell with optional polymorphic root. */\nexport interface CardFrameProps {\n    /**\n     * The HTML tag for the frame root.\n     *\n     * @default 'div'\n     */\n    as?: HTMLTag\n}\n",
      "type": "registry:file",
      "target": "~/src/components/ui/card/types.ts"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/card",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
