Mixins / foldkit-mixins-ui
ListboxRenderInfo
type · packages/mixins-ui/src/listboxShared.ts:69
type ListboxRenderInfo = Readonly<{
id: string
isVisible: boolean
wrapper: ReadonlyArray<ChildAttribute>
button: ReadonlyArray<ChildAttribute>
buttonContent: Html
hiddenInputs: ReadonlyArray<Html>
backdrop:
| {
key: string
attributes: ReadonlyArray<ChildAttribute>
}
| undefined
items:
| {
key: string
attributes: ReadonlyArray<ChildAttribute>
}
| undefined
scroll: ReadonlyArray<ChildAttribute> | undefined
groups: ReadonlyArray<ListboxGroupRender>
}>The listbox's computed bundles. backdrop, items, scroll, and
groups are present only while visible; a closed listbox carries the rest
alone, as upstream renders it. hiddenInputs are the form inputs
submitted under name, passed through for the draw to place.