{
  "$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\">\nexport 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};\n</script>\n\n<script setup lang=\"ts\">\nimport Button from \"../compose/Button.vue\";\nimport { urlOf } from \"../utils\";\n\nconst {\n  login,\n  loginHref,\n  cta,\n  ctaHref,\n  actions = \"cta\",\n  tone = \"default\",\n  themeLabel,\n} = defineProps<NavActionsProps>();\nconst emit = defineEmits<{ theme: [] }>();\n</script>\n\n<template>\n  <Button v-if=\"login\"\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  <Button v-if=\"(((actions as string) === 'cta') && cta)\"\n    :variant=\"(((tone as string) === 'inverse') ? 'secondary' : 'default')\"\n    size=\"sm\"\n    :href=\"urlOf(ctaHref)\"\n  >\n    {{ cta }}\n  </Button>\n  <Button v-if=\"themeLabel\" variant=\"outline\" size=\"sm\" @click=\"() => emit('theme')\">\n    {{ themeLabel }}\n  </Button>\n</template>\n",
      "path": "components/nav-actions.vue",
      "target": "components/nav-actions.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "nav-actions",
  "registryDependencies": [
    "button",
    "utils"
  ],
  "runtime": "vue",
  "title": "Nav Actions",
  "type": "registry:component"
}
