use leptos::*; use leptos_use::docs::demo_or_body; use leptos_use::{use_cycle_list, UseCycleListReturn}; #[component] fn Demo(cx: Scope) -> impl IntoView { let UseCycleListReturn { state, next, prev, .. } = use_cycle_list( cx, vec![ "Dog", "Cat", "Lizard", "Shark", "Whale", "Dolphin", "Octopus", "Seal", ], ); view! { cx,