{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A display title, one span per word; word i takes weights[i] (from the preset). The words wrap like text.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/** A display title, one span per word; word i takes weights[i] (from the preset). The words wrap like text. */\nimport { Fragment, type ReactNode } from \"react\";\nimport { Inline, Title } from \"../compose\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\n\nexport type WeightedTitleProps = {\n  id: string;\n  title: string;\n  weights?: readonly string[];\n  level?: 1 | 2;\n};\n\nexport function WeightedTitle({ id, title, weights, level = 1 }: WeightedTitleProps) {\n  return (\n    <Title\n      as={level}\n      size=\"5xl\"\n      weight=\"semibold\"\n      className={cn(\"text-center tracking-tight text-background\", defaults.hero.title)}\n      id={id}\n      data-slot=\"weighted-title\"\n    >\n      {((title ?? \"\").split(\" \") ?? []).map((word, i) => (\n        <Fragment key={i}>\n          <Inline className={weights?.[i]} data-slot=\"items-row\">\n            {word}\n          </Inline>\n          {\" \"}\n        </Fragment>\n      ))}\n    </Title>\n  );\n}\n",
      "path": "components/weighted-title.tsx",
      "target": "components/weighted-title.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "weighted-title",
  "registryDependencies": [
    "compose",
    "presets",
    "utils"
  ],
  "runtime": "react",
  "title": "Weighted Title",
  "type": "registry:component"
}
