pub struct Drawer { /* private fields */ }Expand description
Drawer component (vaul-style bottom sheet)
A bottom drawer with drag handle that can be dismissed by dragging down.
For side panels, use Sheet.
Implementations§
Source§impl Drawer
impl Drawer
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description (DrawerDescription equivalent)
Sourcepub const fn show_handle(self, show: bool) -> Self
pub const fn show_handle(self, show: bool) -> Self
Show or hide the drag handle (default: true)
Sourcepub const fn show_backdrop(self, show: bool) -> Self
pub const fn show_backdrop(self, show: bool) -> Self
Show or hide the backdrop overlay (default: true)
Sourcepub fn snap_points(self, points: Vec<DrawerSnapPoint>) -> Self
pub fn snap_points(self, points: Vec<DrawerSnapPoint>) -> Self
Set snap points for partial open states
Auto Trait Implementations§
impl Freeze for Drawer
impl RefUnwindSafe for Drawer
impl Send for Drawer
impl Sync for Drawer
impl Unpin for Drawer
impl UnsafeUnpin for Drawer
impl UnwindSafe for Drawer
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