zu/stepper/
mod.rs

1// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
2// Use of this source is governed by Lesser General Public License
3// that can be found in the LICENSE file.
4
5use yew::{function_component, html, AttrValue, Children, Classes, Html, Properties};
6
7use crate::styles::orientation::Orientation;
8
9#[derive(Debug, Clone, PartialEq, Properties)]
10pub struct Props {
11    #[prop_or(0)]
12    pub active_step: i32,
13
14    #[prop_or(false)]
15    pub alternative_label: bool,
16
17    #[prop_or_default]
18    pub children: Children,
19
20    #[prop_or_default]
21    pub classes: Classes,
22
23    #[prop_or_default]
24    pub component: AttrValue,
25    // TODO(Shaohua): Add connector component.
26    #[prop_or(false)]
27    pub non_linear: bool,
28
29    #[prop_or_default]
30    pub orientation: Orientation,
31
32    #[prop_or_default]
33    pub style: AttrValue,
34}
35
36#[function_component(Stepper)]
37pub fn stepper(_props: &Props) -> Html {
38    html! {
39        <>
40        </>
41    }
42}