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
13
14
15
use crate::{AttrMap, BasecoatProps};
use std::borrow::Cow;

/// Textarea — maps to CSS class `.textarea`. No variants.
#[derive(BasecoatProps, Default, Clone, Debug)]
pub struct TextareaProps {
    #[prop(optional, into)]
    pub class: Option<Cow<'static, str>>,
    #[prop(optional, into)]
    pub placeholder: Option<Cow<'static, str>>,
    #[prop(default)]
    pub disabled: bool,
    #[prop(extend)]
    pub attrs: AttrMap,
}