(props: ParentProps<DropdownMenuSubContentProps>)
| 271 | } |
| 272 | |
| 273 | function 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 | |
| 289 | export const DropdownMenu = Object.assign(DropdownMenuRoot, { |
| 290 | Trigger: DropdownMenuTrigger, |
nothing calls this directly
no outgoing calls
no test coverage detected