Finish building out adapters and names

Document core traits
Add start for a component storybook
This commit is contained in:
Mikayla 2023-08-19 14:40:05 -07:00
parent bd3ab82dac
commit e946b0a2ec
No known key found for this signature in database
8 changed files with 213 additions and 153 deletions

View file

@ -72,7 +72,7 @@ impl View for TestView {
TextStyle::for_color(Color::blue()),
)
.with_style(ButtonStyle::fill(Color::yellow()))
.stateful_element(),
.element(),
)
.with_child(
ToggleableButton::new(self.is_doubling, move |_, v: &mut Self, cx| {
@ -84,7 +84,7 @@ impl View for TestView {
inactive: ButtonStyle::fill(Color::red()),
active: ButtonStyle::fill(Color::green()),
})
.stateful_element(),
.element(),
)
.expanded()
.contained()