Skip to content

Component VirtualRow

MeowLynxSea edited this page Jan 23, 2026 · 6 revisions

VirtualRow

A virtualization-safe row shell.

Example

use gpui::px;
use yororen_ui::component::{list_item, virtual_row};

let row = virtual_row(("item", 42))
    .gap_below(px(6.))
    .child(list_item().content("Row content"));

Contract

  • Stable key is required.
  • Spacing/dividers should be attached to the row shell.
  • If row height changes after render, notify the list via VirtualListController.

Clone this wiki locally