pub struct CardStyleConfig {
pub content: WidgetId,
pub is_hovered: Option<Signal<bool>>,
pub variant: CardVariant,
pub background_override: Option<ColorProp>,
pub corner_radius_override: Option<Prop<f32>>,
pub padding_override: Option<Prop<f32>>,
pub shadow_override: Option<Shadow>,
}Fields§
§content: WidgetIdPre-built content subtree wrapped by the card’s chrome.
is_hovered: Option<Signal<bool>>Some(signal) if the card is interactive (hover lifts elevation).
variant: CardVariant§background_override: Option<ColorProp>Caller overrides — when Some, the style should use these
values instead of the variant’s defaults. Custom styles may
ignore them.
corner_radius_override: Option<Prop<f32>>§padding_override: Option<Prop<f32>>§shadow_override: Option<Shadow>Optional caller-supplied shadow override (replaces variant’s default shadow).
Trait Implementations§
Source§impl Clone for CardStyleConfig
impl Clone for CardStyleConfig
Source§fn clone(&self) -> CardStyleConfig
fn clone(&self) -> CardStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CardStyleConfig
impl !Send for CardStyleConfig
impl !Sync for CardStyleConfig
impl !UnwindSafe for CardStyleConfig
impl Freeze for CardStyleConfig
impl Unpin for CardStyleConfig
impl UnsafeUnpin for CardStyleConfig
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