MCPcopy Create free account
hub / github.com/arctic-cli/interface / DropdownMenuTrigger

Function DropdownMenuTrigger

packages/ui/src/components/dropdown-menu.tsx:29–43  ·  view source on GitHub ↗
(props: ParentProps<DropdownMenuTriggerProps>)

Source from the content-addressed store, hash-verified

27}
28
29function DropdownMenuTrigger(props: ParentProps<DropdownMenuTriggerProps>) {
30 const [local, rest] = splitProps(props, ["class", "classList", "children"])
31 return (
32 <Kobalte.Trigger
33 {...rest}
34 data-slot="dropdown-menu-trigger"
35 classList={{
36 ...(local.classList ?? {}),
37 [local.class ?? ""]: !!local.class,
38 }}
39 >
40 {local.children}
41 </Kobalte.Trigger>
42 )
43}
44
45function DropdownMenuIcon(props: ParentProps<DropdownMenuIconProps>) {
46 const [local, rest] = splitProps(props, ["class", "classList", "children"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected