{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Link primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{# Code generated by @ui8kit/codegen. DO NOT EDIT. #}\n{# Link — Link renders an anchor; External opens a new tab with rel=noopener noreferrer. #}\n{# @param class (string) #}\n{# @param href (string) #}\n{# @param target (string) #}\n{# @param rel (string) #}\n{# @param external (bool) #}\n{# @param download (string) #}\n{# @param ariaCurrent (string) #}\n{# @param ariaLabel (string) #}\n{# @param attrs (attrs) #}\n{# @param children (children) #}\n{% set class = class|default('') %}\n{% set href = href ?? null %}\n{% set target = target|default('') %}\n{% set rel = rel|default('') %}\n{% set external = external|default(false) %}\n{% set download = download ?? null %}\n{% set ariaCurrent = ariaCurrent ?? null %}\n{% set ariaLabel = ariaLabel ?? null %}\n{% set attrs = attrs|default([]) %}\n{% set children = children|default('') %}\n{% set uiTarget = (ui8kit_is_set_str(target) ? target : (external ? '_blank' : '')) %}\n{% set uiRel = (ui8kit_is_set_str(rel) ? rel : ((external or (uiTarget is same as('_blank'))) ? 'noopener noreferrer' : '')) %}\n<a{{ ui8kit_attrs({'href': ui8kit_url_or_null(href), 'class': ui8kit_or_null(ui8kit_classes('linkClasses', {'class': class, 'href': href, 'target': target, 'rel': rel, 'external': external, 'download': download, 'ariaCurrent': ariaCurrent, 'ariaLabel': ariaLabel})), 'target': ui8kit_or_null(uiTarget), 'rel': ui8kit_or_null(uiRel), 'download': ui8kit_or_null(download), 'aria-current': ui8kit_or_null(ariaCurrent), 'aria-label': ui8kit_or_null(ariaLabel)}, attrs, false, ['href', 'download', 'aria-current', 'aria-label']) }}>{{ children|raw }}</a>\n",
      "path": "ui/link/Link.html.twig",
      "target": "ui/link/Link.html.twig"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "twig",
      "primitive"
    ]
  },
  "name": "kit-link",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "twig",
  "title": "Kit Link",
  "type": "registry:ui"
}
