https://github.com/worldsender/yew-virtualized
A yew component that renders only the on-screen part of a scrollable list
https://github.com/worldsender/yew-virtualized
hacktoberfest yew yew-components
Last synced: 4 months ago
JSON representation
A yew component that renders only the on-screen part of a scrollable list
- Host: GitHub
- URL: https://github.com/worldsender/yew-virtualized
- Owner: WorldSEnder
- License: apache-2.0
- Created: 2022-05-31T21:16:55.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T20:33:54.000Z (about 2 years ago)
- Last Synced: 2025-02-02T01:11:23.070Z (5 months ago)
- Topics: hacktoberfest, yew, yew-components
- Language: Rust
- Homepage: https://crates.io/crates/yew-virtualized
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
## yew-virtualized
A `VirtualList` yew component that renders only the visible part of a scrollable list.
This component uses the [`ResizeObserver`] API to allow dynamically sized items in the list.
### Quick Example
```rust
use yew_virtualized::VirtualList;fn items(idx: usize) -> Html {
html! { format!("Item #{idx}") }
}#[function_component(App)]
fn app() -> Html {
html! {
}
}
```[`ResizeObserver`]: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver