Mixins / foldkit-mixins-ui

MenuRenderInfo

type · packages/mixins-ui/src/menuView.ts:57

type MenuRenderInfo = Readonly<{
  id: string
  isVisible: boolean
  wrapper: ReadonlyArray<ChildAttribute>
  button: ReadonlyArray<ChildAttribute>
  buttonContent: Html
  backdrop:
    | {
        key: string
        attributes: ReadonlyArray<ChildAttribute>
      }
    | undefined
  items:
    | {
        key: string
        attributes: ReadonlyArray<ChildAttribute>
      }
    | undefined
  scroll: ReadonlyArray<ChildAttribute> | undefined
  groups: ReadonlyArray<MenuGroupRender>
}>

The menu's computed bundles. backdrop, items, scroll, and groups are present only while visible; a closed menu carries the rest alone, as upstream renders it.