basecoat-core 0.2.1

Core types, prop structs, and class-string functions for basecoat-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{AttrMap, BasecoatProps, Children};
use std::borrow::Cow;

/// Card has a single CSS class `.card` — no variants.
#[derive(BasecoatProps, Default, Clone, Debug)]
pub struct CardProps {
    #[prop(optional, into)]
    pub class: Option<Cow<'static, str>>,
    #[prop(extend)]
    pub attrs: AttrMap,
    pub children: Children,
}