b3a7a2a8f5
Add composable wrappers for 37 Base UI component families. Expose primitive and convenience APIs with shared styling utilities. Add the registry manifest, installer CLI, generation and export checks. Include a smoke example covering primitive and shadcn-style imports.
27 lines
702 B
TypeScript
27 lines
702 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { Dialog as BaseDialog } from "@base-ui/react/dialog"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof BaseDialog.Description> & {
|
|
className?: string
|
|
}
|
|
|
|
const BaseDialogDescription = BaseDialog.Description as React.ElementType
|
|
|
|
export const DialogDescription = React.forwardRef<HTMLElement, DialogDescriptionProps>(
|
|
({ className, ...props }, ref) => (
|
|
<BaseDialogDescription
|
|
ref={ref}
|
|
className={cn(
|
|
"text-sm text-neutral-600 dark:text-neutral-400",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
),
|
|
)
|
|
|
|
DialogDescription.displayName = "DialogDescription"
|