{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Meter primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n\n/*\nMeter is a native gauge for a known range (value/min/max).\n*/\n\npackage meter\n\nimport (\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/utils\"\n)\n\n// MeterProps configures Meter.\ntype MeterProps struct {\n\t// Class — token class names supplied by the consumer\n\tClass string\n\tValue *string\n\tMin string\n\tMax string\n\tLow string\n\tHigh string\n\tOptimum string\n\tAriaLabel string\n\tAttrs templ.Attributes\n}\n\n// MeterClasses composes Meter classes without rendering —\n// the server-composition escape hatch for custom root elements (no asChild in templ).\nfunc MeterClasses(p MeterProps) string {\n\treturn uiutils.Cn(p.Class)\n}\n\n// Meter renders the Meter contract.\ntempl Meter(p MeterProps) {\n\t<meter\n\t\tif MeterClasses(p) != \"\" {\n\t\t\tclass={ MeterClasses(p) }\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"value\") {\n\t\t\tif p.Value != nil {\n\t\t\t\tvalue={ *p.Value }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"min\") {\n\t\t\tif uiutils.IsSetStr(p.Min) {\n\t\t\t\tmin={ p.Min }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"max\") {\n\t\t\tif uiutils.IsSetStr(p.Max) {\n\t\t\t\tmax={ p.Max }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"low\") {\n\t\t\tif uiutils.IsSetStr(p.Low) {\n\t\t\t\tlow={ p.Low }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"high\") {\n\t\t\tif uiutils.IsSetStr(p.High) {\n\t\t\t\thigh={ p.High }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"optimum\") {\n\t\t\tif uiutils.IsSetStr(p.Optimum) {\n\t\t\t\toptimum={ p.Optimum }\n\t\t\t}\n\t\t}\n\t\tif !uiutils.HasAttr(p.Attrs, \"aria-label\") {\n\t\t\tif uiutils.IsSetStr(p.AriaLabel) {\n\t\t\t\taria-label={ p.AriaLabel }\n\t\t\t}\n\t\t}\n\t\t{ uiutils.RestAttrs(p.Attrs, false, \"min\", \"max\", \"low\", \"high\", \"optimum\", \"aria-label\")... }\n\t>\n\t\t{ children... }\n\t</meter>\n}\n",
      "path": "ui/meter/meter.templ",
      "target": "ui/meter/meter.templ"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "templ",
      "primitive"
    ]
  },
  "name": "kit-meter",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "templ",
  "title": "Kit Meter",
  "type": "registry:ui"
}
