mirror of
https://github.com/supabase/supabase.git
synced 2026-05-28 16:31:45 +08:00
25 lines
734 B
TypeScript
25 lines
734 B
TypeScript
'use client'
|
|
|
|
import { forwardRef } from 'react'
|
|
|
|
import { CommandGroup_Shadcn_, cn } from 'ui'
|
|
|
|
const CommandGroup = forwardRef<
|
|
React.ElementRef<typeof CommandGroup_Shadcn_>,
|
|
React.ComponentPropsWithoutRef<typeof CommandGroup_Shadcn_>
|
|
>(({ className, ...props }, ref) => {
|
|
return (
|
|
<CommandGroup_Shadcn_
|
|
ref={ref}
|
|
className={cn(
|
|
'overflow-hidden py-3 px-2 text-foreground-muted [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-normal [&_[cmdk-group-heading]]:text-foreground-muted',
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
})
|
|
CommandGroup.displayName = CommandGroup_Shadcn_.displayName
|
|
|
|
export { CommandGroup }
|