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,23 @@
|
||||
"use client"
|
||||
|
||||
import * as React from "react"
|
||||
import { Combobox as BaseCombobox } from "@base-ui/react/combobox"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
export type ComboboxCollectionProps = React.ComponentPropsWithoutRef<typeof BaseCombobox.Collection> & {
|
||||
className?: string
|
||||
}
|
||||
|
||||
const BaseComboboxCollection = BaseCombobox.Collection as React.ElementType
|
||||
|
||||
export const ComboboxCollection = React.forwardRef<HTMLElement, ComboboxCollectionProps>(
|
||||
({ className, ...props }, ref) => (
|
||||
<BaseComboboxCollection
|
||||
ref={ref}
|
||||
className={cn(className)}
|
||||
{...props}
|
||||
/>
|
||||
),
|
||||
)
|
||||
|
||||
ComboboxCollection.displayName = "ComboboxCollection"
|
||||
Reference in New Issue
Block a user