Type Definition webui::Paper

source · []
pub type Paper = FunctionComponent<paper>;
Expand description

Common container component

Basic example

use webui::*;

fn page() -> Html {
	html! {
		<Paper>{"Your child content here"}</Paper>
	}
}

Add classes

use webui::*;

fn page() -> Html {
	html! {
		<Paper class="d-flex flex-column">{"Your child content here"}</Paper>
	}
}

Apply elevetation

Elevation applies a box shadow to the Paper component. Valid ranges range from 0 ro 25.

use webui::*;

fn page() -> Html {
	html! {
		<Paper elevation={10}>{"Your child content here"}</Paper>
	}
}