pub struct ShadowStyle {
pub primary: ShadowLayerStyle,
pub secondary: Option<ShadowLayerStyle>,
pub corner_radii: Corners,
}Expand description
A low-level drop shadow primitive for component-level elevation recipes.
Many Tailwind/shadcn recipes are multi-layer shadows (e.g. shadow-md), so we support up to two
layers without forcing heap allocation (keeps ContainerProps Copy).
Fields§
§primary: ShadowLayerStyle§secondary: Option<ShadowLayerStyle>§corner_radii: CornersTrait Implementations§
Source§impl Clone for ShadowStyle
impl Clone for ShadowStyle
Source§fn clone(&self) -> ShadowStyle
fn clone(&self) -> ShadowStyle
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 ShadowStyle
impl Debug for ShadowStyle
Source§impl PartialEq for ShadowStyle
impl PartialEq for ShadowStyle
impl Copy for ShadowStyle
impl StructuralPartialEq for ShadowStyle
Auto Trait Implementations§
impl Freeze for ShadowStyle
impl RefUnwindSafe for ShadowStyle
impl Send for ShadowStyle
impl Sync for ShadowStyle
impl Unpin for ShadowStyle
impl UnsafeUnpin for ShadowStyle
impl UnwindSafe for ShadowStyle
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