Expand description
LibrarySidebar + storage meter (M-UI.14 / AUT-134) โ left rail of
the library screen. Nav items + sections (SPACES, TAGS) + a
bottom storage quota meter.
Pure presentational composition over UI-01 / UI-04 primitives. The selected nav id + counts + storage values flow in as props.
Structsยง
- Library
NavItem View - One row in the sidebar.
- Library
Section View - One section in the sidebar (
SPACES,TAGS). - Library
Sidebar Props - Props for the
LibrarySidebarcomponent. - Library
Sidebar View - Composite sidebar view-model.
- Storage
Meter Props - Props for the
StorageMetercomponent. - Storage
Meter View - Storage quota meter shown at the bottom of the sidebar.
Functionsยง
- Library
Sidebar - Required Props
- Storage
Meter - Bottom storage meter (also used standalone in
StorageMeterstories so the slider is reviewable without the rest of the sidebar). - render_
nav_ ๐row - storage_
percent - Clamp a
0.0..=1.0fraction to a0..=100integer percent.