Function
TaskTrigger
({
children,
className,
title,
...props
}: TaskTriggerProps)
Source from the content-addressed store, hash-verified
| 50 | }; |
| 51 | |
| 52 | export 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 | |
| 69 | export type TaskContentProps = ComponentProps<typeof CollapsibleContent>; |
| 70 | |
Callers
nothing calls this directly
Tested by
no test coverage detected