{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "meter-group",
  "type": "registry:ui",
  "title": "Meter Group",
  "dependencies": [
    "@base-ui-next/react"
  ],
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json"
  ],
  "files": [
    {
      "path": "react/meter-group.tsx",
      "content": "'use client'\n\nimport { MeterGroup as MeterGroupPrimitive } from '@base-ui-next/react/meter-group' // base-ui-next/ui meter-group@0.1.0\nimport { cn } from '@/lib/utils'\n\nconst meterGroupClassName = 'flex flex-wrap gap-3'\n\nconst meterGroupLabelClassName = 'text-sm font-medium'\n\nconst meterGroupValueClassName = 'ml-auto text-sm text-muted-foreground tabular-nums'\n\nconst meterGroupTrackClassName =\n  'relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted'\n\nconst meterGroupIndicatorClassName =\n  'h-full shrink-0 bg-primary/25 transition-all not-last:not-data-empty:border-e-2 not-last:not-data-empty:border-background data-[index=0]:bg-primary data-[index=1]:bg-primary/70 data-[index=2]:bg-primary/45 forced-colors:not-data-empty:border forced-colors:not-data-empty:border-solid'\n\nconst meterGroupItemClassName =\n  'flex items-center gap-1.5 text-sm before:size-2 before:shrink-0 before:rounded-full before:bg-primary/25 data-[index=0]:before:bg-primary data-[index=1]:before:bg-primary/70 data-[index=2]:before:bg-primary/45 forced-colors:before:border forced-colors:before:border-solid'\n\nconst meterGroupItemLabelClassName = 'text-muted-foreground'\n\nconst meterGroupItemValueClassName = 'tabular-nums'\n\n// No shadcn item: Base UI's component ID as slug (docs/design/log/meter-group.md, decision 55).\n// One name per part; the root renders only its children, since each Indicator and Item names the\n// index of its value.\nfunction MeterGroup({ className, ...props }: MeterGroupPrimitive.Root.Props) {\n  return (\n    <MeterGroupPrimitive.Root\n      data-slot=\"meter-group\"\n      className={cn(meterGroupClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupLabel({ className, ...props }: MeterGroupPrimitive.Label.Props) {\n  return (\n    <MeterGroupPrimitive.Label\n      data-slot=\"meter-group-label\"\n      className={cn(meterGroupLabelClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupValue({ className, ...props }: MeterGroupPrimitive.Value.Props) {\n  return (\n    <MeterGroupPrimitive.Value\n      data-slot=\"meter-group-value\"\n      className={cn(meterGroupValueClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupTrack({ className, ...props }: MeterGroupPrimitive.Track.Props) {\n  return (\n    <MeterGroupPrimitive.Track\n      data-slot=\"meter-group-track\"\n      className={cn(meterGroupTrackClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupIndicator({ className, ...props }: MeterGroupPrimitive.Indicator.Props) {\n  return (\n    <MeterGroupPrimitive.Indicator\n      data-slot=\"meter-group-indicator\"\n      className={cn(meterGroupIndicatorClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupItem({ className, ...props }: MeterGroupPrimitive.Item.Props) {\n  return (\n    <MeterGroupPrimitive.Item\n      data-slot=\"meter-group-item\"\n      className={cn(meterGroupItemClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupItemLabel({ className, ...props }: MeterGroupPrimitive.ItemLabel.Props) {\n  return (\n    <MeterGroupPrimitive.ItemLabel\n      data-slot=\"meter-group-item-label\"\n      className={cn(meterGroupItemLabelClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MeterGroupItemValue({ className, ...props }: MeterGroupPrimitive.ItemValue.Props) {\n  return (\n    <MeterGroupPrimitive.ItemValue\n      data-slot=\"meter-group-item-value\"\n      className={cn(meterGroupItemValueClassName, className)}\n      {...props}\n    />\n  )\n}\n\nexport {\n  MeterGroup,\n  MeterGroupIndicator,\n  MeterGroupItem,\n  MeterGroupItemLabel,\n  MeterGroupItemValue,\n  MeterGroupLabel,\n  MeterGroupTrack,\n  MeterGroupValue,\n}\n",
      "type": "registry:ui",
      "target": "@ui/meter-group.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.0",
      "hash": "c4392399b55922c6bbe68c71d297b4945674bc19b78f4a8de803e80e2169b01b",
      "files": {
        "@ui/meter-group.tsx": "52a5831cf010f1520fd2925d9c268b94de613a0aeea9c9914ce6e6d788cc506c"
      }
    }
  }
}
