pub enum DialogSize {
Small,
Medium,
Large,
ExtraLarge,
FullScreen,
Custom(f32),
}Expand description
Dialog size presets (max-width based like shadcn)
Variants§
Small
Small dialog (384px - sm:max-w-sm)
Medium
Medium dialog (512px - sm:max-w-lg, default)
Large
Large dialog (672px - sm:max-w-2xl)
ExtraLarge
Extra large dialog (896px - sm:max-w-4xl)
FullScreen
Full screen dialog
Custom(f32)
Custom max width
Trait Implementations§
Source§impl Clone for DialogSize
impl Clone for DialogSize
Source§fn clone(&self) -> DialogSize
fn clone(&self) -> DialogSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DialogSize
impl Debug for DialogSize
Source§impl PartialEq for DialogSize
impl PartialEq for DialogSize
impl Copy for DialogSize
impl StructuralPartialEq for DialogSize
Auto Trait Implementations§
impl Freeze for DialogSize
impl RefUnwindSafe for DialogSize
impl Send for DialogSize
impl Sync for DialogSize
impl Unpin for DialogSize
impl UnsafeUnpin for DialogSize
impl UnwindSafe for DialogSize
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