zu 0.3.3

Yew web components, implementing Material Design
Documentation
// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Lesser General Public License
// that can be found in the LICENSE file.

mod text_align;
mod variant;

use yew::{function_component, html, AttrValue, Children, Classes, Html, Properties};

use crate::styles::size::Size;
use crate::styles::sort_direction::SortDirection;
use crate::table::Padding;
pub use text_align::TextAlign;
pub use variant::Variant;

#[derive(Debug, Clone, PartialEq, Properties)]
pub struct Props {
    #[prop_or_default]
    pub align: TextAlign,

    #[prop_or_default]
    pub children: Children,

    #[prop_or_default]
    pub classes: Classes,

    #[prop_or_default]
    pub padding: Padding,

    #[prop_or_default]
    pub scope: AttrValue,

    #[prop_or_default]
    pub size: Size,

    #[prop_or_default]
    pub sort_direction: Option<SortDirection>,

    #[prop_or_default]
    pub style: AttrValue,

    #[prop_or_default]
    pub variant: Variant,
}

#[function_component(TableCell)]
pub fn table_cell(_props: &Props) -> Html {
    html! {
        <>
        </>
    }
}