Web components for the Yew framework that support Bootstrap for styling.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
682 B

use crate::{props::Props, render};
use yew::prelude::*;
pub struct Jumbotron {
props: Props,
}
impl Component for Jumbotron {
type Properties = Props;
type Message = ();
fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self {
Self { props }
}
fn update(&mut self, _: Self::Message) -> ShouldRender {
false
}
fn change(&mut self, _: Self::Properties) -> ShouldRender {
false
}
fn view(&self) -> Html {
let html = html! {
<div>
{ self.props.children.clone() }
</div>
};
render::render_with_prefix(&self.props, "jumbotron", html)
}
}