



data-layout-width="boxed" to the <html> tag. For optimal spacing and usability, we also recommend adding data-sidenav-size="on-hover" to make the sidebar compact while keeping more room for content. To apply this dynamically, use setWidth('boxed') and setSideNavSize('on-hover') from the useLayout.