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.
24 lines
588 B
TypeScript
24 lines
588 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { Combobox as BaseCombobox } from "@base-ui/react/combobox"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export type ComboboxChipProps = React.ComponentPropsWithoutRef<typeof BaseCombobox.Chip> & {
|
|
className?: string
|
|
}
|
|
|
|
const BaseComboboxChip = BaseCombobox.Chip as React.ElementType
|
|
|
|
export const ComboboxChip = React.forwardRef<HTMLElement, ComboboxChipProps>(
|
|
({ className, ...props }, ref) => (
|
|
<BaseComboboxChip
|
|
ref={ref}
|
|
className={cn(className)}
|
|
{...props}
|
|
/>
|
|
),
|
|
)
|
|
|
|
ComboboxChip.displayName = "ComboboxChip"
|