diff --git a/app/components/ui/button.tsx b/app/components/ui/button.tsx index 83786d6..0e8e493 100644 --- a/app/components/ui/button.tsx +++ b/app/components/ui/button.tsx @@ -1,3 +1,4 @@ +import * as React from "react" import { Button as ButtonPrimitive } from "@base-ui/react/button" import { cva, type VariantProps } from "class-variance-authority" @@ -40,19 +41,61 @@ const buttonVariants = cva( } ) +/** + * Button component. + * + * Supports the Radix-style `asChild` ergonomic for cases like + * `` so the consumer doesn't + * have to reach for base-ui's `render` prop directly. Internally translates + * `asChild` → base-ui `render` so the underlying `` (or whatever the child + * is) actually rendered, instead of nesting a `