{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-grid",
  "title": "Bento Grid",
  "description": "A six-column Astro grid of raised cards, each with a fading visual and a soft top light.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-card-content.astro",
      "content": "---\n/**\n * Copy under or above the visual.\n * Padding on the top is removed when a visual comes first.\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=\"bento-card-content\"\n  class={cn(\n    \"flex flex-col gap-1.5 p-6 [[data-slot=bento-card-visual]~&]:pt-0\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-card-content.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-card-description.astro",
      "content": "---\n/**\n * Short supporting text under the title.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n  data-slot=\"bento-card-description\"\n  class={cn(\"max-w-sm text-sm text-pretty text-muted-foreground\", className)}\n  {...props}\n>\n  <slot />\n</p>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-card-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-card-title.astro",
      "content": "---\n/**\n * Name of the card.\n * The default tag is `h3`. Set `as` when the page needs another heading level.\n */\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\nimport type { BentoCardTitleProps } from \"./types.ts\"\n\ntype Props<Tag extends HTMLTag = \"h3\"> = Polymorphic<{ as: Tag }> &\n  BentoCardTitleProps\n\nconst { as: Tag = \"h3\", class: className, ...props } = Astro.props\n---\n\n<Tag\n  data-slot=\"bento-card-title\"\n  class={cn(\"font-heading text-base font-medium tracking-tight\", className)}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-card-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-card-visual.astro",
      "content": "---\n/**\n * Stage for the card picture.\n * The bottom edge fades into the card surface, so a fragment can leave the stage.\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=\"bento-card-visual\"\n  class={cn(\n    \"relative flex min-h-48 flex-1 items-center justify-center overflow-hidden mask-[linear-gradient(to_bottom,black_calc(100%-4rem),transparent)]\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-card-visual.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-card.astro",
      "content": "---\n/**\n * Raised card with a lit top edge.\n * Put `BentoLight` and `BentoCardVisual` above `BentoCardContent`.\n * Hover styles on the inner parts use `group-hover/bento-card`.\n * Set `--bento-light` on this card to tint `BentoLight`.\n * The panel and light inherit the highlight and glow from this card.\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=\"bento-card\"\n  class={cn(\n    \"[--highlight:--theme(--color-white)] dark:[--highlight:--theme(--color-white/7%)]\",\n    \"[--glow:--theme(--color-foreground/6%)] dark:[--glow:--theme(--color-white/14%)]\",\n\n    \"group/bento-card relative isolate flex min-h-80 flex-col overflow-hidden rounded-3xl bg-card text-card-foreground inset-shadow-2xs inset-shadow-(color:--highlight) ring-1 ring-foreground/8 transition-shadow duration-300 @md:col-span-2 hover:ring-foreground/12\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-card.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-grid.astro",
      "content": "---\n/**\n * The grid has one column below `@md`, four from `@md`, and six from `@3xl`.\n * Rows are at least `18rem` tall and grow with the content.\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=\"bento-grid\"\n  class={cn(\n    \"grid w-full auto-rows-[minmax(18rem,auto)] grid-cols-1 @md:@max-3xl:grid-cols-[repeat(4,minmax(auto,20rem))] gap-4 @3xl:grid-cols-6\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-grid.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-light.astro",
      "content": "---\n/**\n * Soft light from the top edge of the card.\n * It draws a haze, a faint dot field, and a lit line on the edge.\n * Tint it with `--bento-light` on the card.\n * The card supplies the neutral glow beneath the optional tint.\n * Move the light with `left-*` or `right-*` on this part.\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  aria-hidden=\"true\"\n  data-slot=\"bento-light\"\n  class={cn(\n    \"pointer-events-none absolute inset-x-0 top-0 -z-10 h-full opacity-80 transition-opacity duration-700 group-hover/bento-card:opacity-100 motion-reduce:transition-none\",\n    // effect color definitions\n    \"[--bento-tint:--alpha(var(--bento-light,transparent)/35%)]\",\n    \"[--bento-bright:oklch(from_var(--bento-light,var(--foreground))_max(l,0.9)_c_h)]\",\n    \"[--bento-tint-stops:var(--bento-tint),--alpha(var(--bento-tint)/45%)_25%,--alpha(var(--bento-tint)/12%)_55%,transparent]\",\n    \"[--bento-glow-stops:var(--glow),--alpha(var(--glow)/45%)_25%,--alpha(var(--glow)/12%)_55%,transparent]\",\n    // Keep the one-pixel line sharp while the haze scales.\n    \"after:absolute after:inset-x-1/4 after:top-0 after:h-px after:bg-linear-to-r after:from-transparent after:via-(--bento-bright)/70 after:to-transparent after:opacity-0 after:shadow-[0_0_16px_2px_var(--glow)] dark:after:opacity-100\",\n    className,\n  )}\n  {...props}\n>\n  <div\n    data-slot=\"bento-light-haze\"\n    class:list={[\n      \"absolute inset-0 origin-top transition-[scale] duration-700 group-hover/bento-card:scale-110 motion-reduce:transition-none\",\n      \"bg-[radial-gradient(50%_70%_at_50%_0%,var(--bento-tint-stops)),radial-gradient(50%_90%_at_50%_0%,var(--bento-glow-stops))]\",\n      \"before:absolute before:inset-0 before:bg-[radial-gradient(--alpha(var(--bento-bright)/22%)_1px,transparent_1px)] before:bg-size-[12px_12px] before:mask-[radial-gradient(40%_50%_at_50%_0%,black,transparent)]\",\n    ]}\n  >\n    <slot />\n  </div>\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-light.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/bento-panel.astro",
      "content": "---\n/**\n * Raised fragment on the visual stage.\n * Use it for a window, a toast, or a palette.\n * It shares the lit top edge of the card.\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=\"bento-panel\"\n  class={cn(\n    \"relative rounded-2xl bg-popover/80 shadow-lg ring-1 ring-foreground/10 inset-shadow-2xs inset-shadow-(color:--highlight) backdrop-blur-md dark:shadow-2xl\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/bento-panel.astro"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/index.ts",
      "content": "export { default as BentoGrid } from './bento-grid.astro'\nexport { default as BentoCard } from './bento-card.astro'\nexport { default as BentoCardContent } from './bento-card-content.astro'\nexport { default as BentoCardDescription } from './bento-card-description.astro'\nexport { default as BentoCardTitle } from './bento-card-title.astro'\nexport { default as BentoCardVisual } from './bento-card-visual.astro'\nexport { default as BentoLight } from './bento-light.astro'\nexport { default as BentoPanel } from './bento-panel.astro'\n\nexport type { BentoCardTitleProps } from './types.ts'\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/index.ts"
    },
    {
      "path": "packages/ui/src/components/ui/bento-grid/types.ts",
      "content": "import type { HTMLTag } from 'astro/types'\n\n/**\n * Props for the bento card title.\n * Element attributes such as `id` and `class` pass through.\n */\nexport interface BentoCardTitleProps {\n    /**\n     * The HTML tag for the title.\n     *\n     * @default \"h3\"\n     */\n    as?: HTMLTag\n}\n",
      "type": "registry:file",
      "target": "~/src/components/ui/bento-grid/types.ts"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "cn": "0.5.2"
    }
  },
  "docs": "https://gnosticai.com/ui/components/bento-grid",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
