Checkpoint
This commit is contained in:
parent
c6e20aed9b
commit
b040ae8d4d
4 changed files with 40 additions and 16 deletions
20
crates/storybook2/src/stories/text.rs
Normal file
20
crates/storybook2/src/stories/text.rs
Normal file
|
@ -0,0 +1,20 @@
|
|||
use gpui3::{div, view, white, Context, ParentElement, StyleHelpers, View, WindowContext};
|
||||
|
||||
pub struct TextStory {
|
||||
text: View<()>,
|
||||
}
|
||||
|
||||
impl TextStory {
|
||||
pub fn view(cx: &mut WindowContext) -> View<()> {
|
||||
view(cx.entity(|cx| ()), |_, cx| {
|
||||
div()
|
||||
.size_full()
|
||||
.fill(white())
|
||||
.child(concat!(
|
||||
"The quick brown fox jumps over the lazy dog. ",
|
||||
"Meanwhile, the lazy dog decided it was time for a change. ",
|
||||
"He started daily workout routines, ate healthier and became the fastest dog in town.",
|
||||
))
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue