pub struct Props {
pub id: String,
pub items: Vec<Markup>,
pub show_dots: bool,
pub show_arrows: bool,
pub loop_slides: bool,
pub auto_play: bool,
pub aria_label: String,
}Expand description
Carousel rendering properties
Fields§
§id: StringUnique element id
items: Vec<Markup>Each slide’s content as Markup
show_dots: boolShow dot indicators at bottom (default true)
show_arrows: boolShow prev/next arrows (default true)
loop_slides: boolWrap around when reaching the end (default false)
auto_play: boolAuto-advance slides (default false)
aria_label: StringAccessible label for the carousel region
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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