MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / TaskTrigger

Function TaskTrigger

components/ai-elements/task.tsx:52–67  ·  view source on GitHub ↗
({
  children,
  className,
  title,
  ...props
}: TaskTriggerProps)

Source from the content-addressed store, hash-verified

50};
51
52export const TaskTrigger = ({
53 children,
54 className,
55 title,
56 ...props
57}: TaskTriggerProps) => (
58 <CollapsibleTrigger asChild className={cn("group", className)} {...props}>
59 {children ?? (
60 <div className="flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground">
61 <SearchIcon className="size-4" />
62 <p className="text-sm">{title}</p>
63 <ChevronDownIcon className="size-4 transition-transform group-data-[state=open]:rotate-180" />
64 </div>
65 )}
66 </CollapsibleTrigger>
67);
68
69export type TaskContentProps = ComponentProps<typeof CollapsibleContent>;
70

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected