{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Nav Actions component",
  "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<!--\n  The buttons at the end of a top bar: login, the call to action and the theme button (it only reports the\n  press). No wrapper: they sit in the row of the bar.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type NavActionsProps = {\n    login?: string;\n    loginHref?: string;\n    cta?: string;\n    ctaHref?: string;\n    actions?: \"none\" | \"cta\";\n    tone?: \"default\" | \"inverse\";\n    themeLabel?: string;\n    ontheme?: () => void;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Button from \"../compose/Button.svelte\";\n  import { urlOf } from \"../utils\";\n\n  let {\n    login,\n    loginHref,\n    cta,\n    ctaHref,\n    actions = \"cta\",\n    tone = \"default\",\n    themeLabel,\n    ontheme,\n  }: NavActionsProps = $props();\n</script>\n\n{#if login}\n  <Button\n    variant=\"ghost\"\n    size=\"sm\"\n    href={urlOf(loginHref)}\n    class={(((tone as string) === \"inverse\") ? \"text-background hover:bg-background/10\" : \"\")}\n  >\n    {login}\n  </Button>\n{/if}\n{#if (((actions as string) === \"cta\") && cta)}\n  <Button variant={(((tone as string) === \"inverse\") ? \"secondary\" : \"default\")} size=\"sm\" href={urlOf(ctaHref)}>\n    {cta}\n  </Button>\n{/if}\n{#if themeLabel}\n  <Button variant=\"outline\" size=\"sm\" onclick={() => ontheme?.()}>\n    {themeLabel}\n  </Button>\n{/if}\n",
      "path": "components/nav-actions.svelte",
      "target": "components/nav-actions.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "nav-actions",
  "registryDependencies": [
    "button",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Nav Actions",
  "type": "registry:component"
}
