In a previous PR #1096, we made usage of the widget state instead of the component state to set the collapsed value when the widget is created. But the widget is reset at each refresh of the interface, instead the component state does not change. This commit makes the distinction between the two by having the widget state as an initial state and the component one as a capture of the user clicks.
liana_ui
UI components used across the liana GUI iced application.
An wasm compatible example of the design system can be found in
./examples/design-system