MCPcopy Create free account
hub / github.com/cosscom/coss / CommandPanel

Function CommandPanel

apps/ui/registry/default/ui/command.tsx:162–175  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

160}
161
162export function CommandPanel({
163 className,
164 ...props
165}: React.ComponentProps<"div">): React.ReactElement {
166 return (
167 <div
168 className={cn(
169 "relative -mx-px not-has-[+[data-slot=command-footer]]:-mb-px min-h-0 rounded-t-xl not-has-[+[data-slot=command-footer]]:rounded-b-2xl border border-b-0 bg-popover bg-clip-padding shadow-xs/5 [clip-path:inset(0_1px)] not-has-[+[data-slot=command-footer]]:[clip-path:inset(0_1px_1px_1px_round_0_0_calc(var(--radius-2xl)-1px)_calc(var(--radius-2xl)-1px))] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2",
170 className,
171 )}
172 {...props}
173 />
174 );
175}
176
177export function CommandGroup({
178 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected