use super::*;
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvCarouselSlide {
#[get(type(copy))]
pub title: &'static str,
#[get(type(copy))]
pub desc: &'static str,
}
#[derive(Clone, Copy, CustomDebug, Default)]
pub struct EuvCarouselContentProps {
pub orientation: EuvCarouselOrientation,
}
#[derive(Clone, Copy, CustomDebug, Default)]
pub struct EuvCarouselItemProps {
pub orientation: EuvCarouselOrientation,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvCarouselNextProps {
pub orientation: EuvCarouselOrientation,
pub label: &'static str,
pub disabled: bool,
#[debug(skip)]
pub on_press: Option<Rc<dyn Fn()>>,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvCarouselPreviousProps {
pub orientation: EuvCarouselOrientation,
pub label: &'static str,
pub disabled: bool,
#[debug(skip)]
pub on_press: Option<Rc<dyn Fn()>>,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvCarouselProps {
pub slides: Vec<EuvCarouselSlide>,
pub active: Signal<u32>,
#[debug(skip)]
pub on_change: Option<Rc<dyn Fn(u32)>>,
}