Clean up Element API and start on docs
This commit is contained in:
parent
5f2bb82ef3
commit
83923fd6d5
125 changed files with 370 additions and 335 deletions
|
@ -7,9 +7,9 @@ use crate::{Button, ButtonStyle};
|
|||
pub struct ButtonStory;
|
||||
|
||||
impl Render for ButtonStory {
|
||||
type Element = Div;
|
||||
type Output = Div;
|
||||
|
||||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Output {
|
||||
Story::container()
|
||||
.child(Story::title_for::<Button>())
|
||||
.child(Story::label("Default"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue