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

Function DropdownMenuSubTrigger

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

Source from the content-addressed store, hash-verified

255}
256
257function DropdownMenuSubTrigger(props: ParentProps<DropdownMenuSubTriggerProps>) {
258 const [local, rest] = splitProps(props, ["class", "classList", "children"])
259 return (
260 <Kobalte.SubTrigger
261 {...rest}
262 data-slot="dropdown-menu-sub-trigger"
263 classList={{
264 ...(local.classList ?? {}),
265 [local.class ?? ""]: !!local.class,
266 }}
267 >
268 {local.children}
269 </Kobalte.SubTrigger>
270 )
271}
272
273function DropdownMenuSubContent(props: ParentProps<DropdownMenuSubContentProps>) {
274 const [local, rest] = splitProps(props, ["class", "classList", "children"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected