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

Function DropdownMenuSubContent

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

Source from the content-addressed store, hash-verified

271}
272
273function DropdownMenuSubContent(props: ParentProps<DropdownMenuSubContentProps>) {
274 const [local, rest] = splitProps(props, ["class", "classList", "children"])
275 return (
276 <Kobalte.SubContent
277 {...rest}
278 data-component="dropdown-menu-sub-content"
279 classList={{
280 ...(local.classList ?? {}),
281 [local.class ?? ""]: !!local.class,
282 }}
283 >
284 {local.children}
285 </Kobalte.SubContent>
286 )
287}
288
289export const DropdownMenu = Object.assign(DropdownMenuRoot, {
290 Trigger: DropdownMenuTrigger,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected