bootstrap-rs/src/lib.rs

39 lines
939 B
Rust
Raw Normal View History

2020-06-20 16:03:49 +00:00
pub mod alert;
2020-05-28 18:09:25 +00:00
mod breadcrumb;
mod button;
mod card;
mod container;
2020-06-18 13:53:25 +00:00
mod form;
2020-05-28 18:09:25 +00:00
pub mod input;
mod jumbotron;
pub mod prelude;
2020-06-21 15:57:50 +00:00
pub(crate) mod props;
mod render;
2020-05-28 18:09:25 +00:00
pub use self::{
2020-06-20 16:03:49 +00:00
alert::Alert,
2020-05-28 18:09:25 +00:00
breadcrumb::{Breadcrumb, BreadcrumbItem},
2020-06-24 21:16:43 +00:00
button::{Button, ButtonGroup, ButtonToolbar},
2020-05-28 18:09:25 +00:00
card::{Card, CardBody, CardHeader, CardText},
container::Container,
2021-11-08 16:46:56 +00:00
form::{Form, FormGroup},
2020-05-28 18:09:25 +00:00
input::{Input, InputGroup, TextArea},
jumbotron::Jumbotron,
2021-09-19 15:17:22 +00:00
props::Props,
2020-05-28 18:09:25 +00:00
};
2021-09-06 21:17:51 +00:00
#[cfg(test)]
pub(crate) mod test {
use yew::virtual_dom::VNode;
pub(crate) fn assert_attrs_eq(expected: VNode, comp: VNode) {
match (expected, comp) {
(VNode::VTag(mut expected), VNode::VTag(mut comp)) => assert_eq!(
expected.attributes.get_mut_index_map(),
comp.attributes.get_mut_index_map()
),
_ => panic!("One or both components were not tags!"),
}
}
}