{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "launch-pad",
  "type": "registry:ui",
  "title": "Launch pad",
  "description": "Sky box with flying rocket.",
  "dependencies": [],
  "registryDependencies": [
    "bricked-css",
    "pixel-icon"
  ],
  "files": [
    {
      "path": "registry/bricked-ui/launch-pad.tsx",
      "content": "import * as React from \"react\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { PixelIcon, type PixelIconInput } from \"./pixel-icon\";\r\n\r\nconst s = cva(\"bk-sky bk-cut\", {\r\n  variants: {\r\n    size: { sm: \"[--px:4px] [--cut:1.5px] [--icon:3px] text-[11px]\", md: \"[--px:6px] [--cut:2px] [--icon:4px] text-[14px]\", lg: \"[--px:8px] [--cut:3px] [--icon:5px] text-[18px]\" },\r\n    variant: { primary: \"bg-brick text-ink\", dark: \"bg-ink text-on-dark\" },\r\n  },\r\n  defaultVariants: { size: \"md\", variant: \"primary\" },\r\n});\r\nexport interface LaunchPadProps extends React.ComponentProps<\"div\">, VariantProps<typeof s> { icon?: PixelIconInput; }\r\nexport function LaunchPad({ className, size, variant, icon = \"rocket\", ...props }: LaunchPadProps) {\r\n  const [fly, setFly] = React.useState(false);\r\n  return (<div className={cn(s({ size, variant }), className)} {...props}><div className=\"bk-sky bk-cut\" aria-hidden=\"true\"><span className={fly ? \"bk-rocket is-fly\" : \"bk-rocket\"}><PixelIcon icon={icon} /></span></div><button type=\"button\" className=\"bricked-btn bricked-btn--sm\" disabled={fly} onClick={() => { setFly(true); setTimeout(() => setFly(false), 1500); }}>Launch</button></div>);\r\n}\r\n",
      "type": "registry:ui",
      "target": "components/ui/launch-pad.tsx"
    }
  ]
}