Skip to main content

Module library_sidebar

Module library_sidebar 

Source
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ยง

LibraryNavItemView
One row in the sidebar.
LibrarySectionView
One section in the sidebar (SPACES, TAGS).
LibrarySidebarProps
Props for the LibrarySidebar component.
LibrarySidebarView
Composite sidebar view-model.
StorageMeterProps
Props for the StorageMeter component.
StorageMeterView
Storage quota meter shown at the bottom of the sidebar.

Functionsยง

LibrarySidebar
Required Props
StorageMeter
Bottom storage meter (also used standalone in StorageMeter stories so the slider is reviewable without the rest of the sidebar).
render_nav_row ๐Ÿ”’
storage_percent
Clamp a 0.0..=1.0 fraction to a 0..=100 integer percent.