pub struct ToastLayerStyle {Show 22 fields
pub palette: ToastVariantPalette,
pub shadow: Option<ShadowStyle>,
pub icons: ToastIconOverrides,
pub show_close_button: bool,
pub close_button_aria_label: Option<Arc<str>>,
pub open_ticks: u64,
pub close_ticks: u64,
pub easing: Option<CubicBezier>,
pub slide_distance: Px,
pub border_color_key: Option<String>,
pub border_width: Px,
pub description_color_key: Option<String>,
pub icon_size: Px,
pub single_line_min_height: Option<Px>,
pub two_line_min_height: Option<Px>,
pub container_padding: Option<Edges>,
pub container_radius: Option<Px>,
pub title: ToastTextStyle,
pub description: ToastTextStyle,
pub action: ToastButtonStyle,
pub cancel: ToastButtonStyle,
pub close: ToastIconButtonStyle,
}Fields§
§palette: ToastVariantPalette§shadow: Option<ShadowStyle>Optional shadow for the toast container.
icons: ToastIconOverridesSonner-style icon overrides (icons.*).
Whether to render a close (X) icon button on toasts.
Note: this is distinct from per-toast “dismissible” behavior (e.g. swipe-to-dismiss).
A11y label for the close button (Sonner: closeButtonAriaLabel, default: “Close toast”).
open_ticks: u64Motion timing for enter/exit presence.
Defaults keep the existing shadcn-aligned behavior.
close_ticks: u64§easing: Option<CubicBezier>§slide_distance: Px§border_color_key: Option<String>Optional border color. When omitted, no border is drawn.
border_width: Px§description_color_key: Option<String>§icon_size: Px§single_line_min_height: Option<Px>§two_line_min_height: Option<Px>§container_padding: Option<Edges>§container_radius: Option<Px>§title: ToastTextStyle§description: ToastTextStyle§action: ToastButtonStyle§cancel: ToastButtonStyle§close: ToastIconButtonStyleTrait Implementations§
Source§impl Clone for ToastLayerStyle
impl Clone for ToastLayerStyle
Source§fn clone(&self) -> ToastLayerStyle
fn clone(&self) -> ToastLayerStyle
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 ToastLayerStyle
impl Debug for ToastLayerStyle
Auto Trait Implementations§
impl Freeze for ToastLayerStyle
impl RefUnwindSafe for ToastLayerStyle
impl Send for ToastLayerStyle
impl Sync for ToastLayerStyle
impl Unpin for ToastLayerStyle
impl UnsafeUnpin for ToastLayerStyle
impl UnwindSafe for ToastLayerStyle
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