pub struct SidebarProviderProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
The flex layout surrounding a sidebar and the page content.
On desktop, the page content scrolls within the viewport-height layout.
Set --sidebar-width, --sidebar-width-mobile and --sidebar-width-icon
through attrs to customize the widths. Place a right sidebar after the
page content. State belongs to the caller, which passes expressions to
sidebar and event handlers to sidebar_trigger and sidebar_rail.
Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> SidebarProviderProps<'__a>
impl<'__a> SidebarProviderProps<'__a>
Sourcepub fn builder() -> SidebarProviderPropsBuilder<'__a>
pub fn builder() -> SidebarProviderPropsBuilder<'__a>
Returns a SidebarProviderPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for SidebarProviderProps<'__a>
impl<'__a> !Sync for SidebarProviderProps<'__a>
impl<'__a> !UnwindSafe for SidebarProviderProps<'__a>
impl<'__a> Freeze for SidebarProviderProps<'__a>
impl<'__a> Send for SidebarProviderProps<'__a>
impl<'__a> Unpin for SidebarProviderProps<'__a>
impl<'__a> UnsafeUnpin for SidebarProviderProps<'__a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more