-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmod.rs
More file actions
28 lines (23 loc) · 694 Bytes
/
mod.rs
File metadata and controls
28 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use crate::{example, example::ExamplePage};
use patternfly_yew::prelude::*;
use yew::prelude::*;
pub struct EmptyStateExample {}
impl Component for EmptyStateExample {
type Message = ();
type Properties = ();
fn create(_: &Context<Self>) -> Self {
Self {}
}
fn view(&self, ctx: &Context<Self>) -> Html {
let example1 = example! ("Empty state" => "empty.1.example");
let example2 = example! ("Empty state (XLarge)" => "empty.2.example");
html! {
<>
<ExamplePage title="Empty state">
{example1}
{example2}
</ExamplePage>
</>
}
}
}