mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Nested List Example
This example shows a nested list and displays which item was last hovered.
Concepts
- Creating components which only accepts specific child elements
- Communicating with a component that isn't a parent. See
WeakComponentLinkin main.rs.
Improvements
ListItemComponent has ahideprop which is currently only used statically. It should be possible to make the hidden items visible by pressing a button.
Running
Run this application with the trunk development server:
trunk serve --open