feat: add Base UI Tailwind component library
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.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"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"
|
||||
Reference in New Issue
Block a user