-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use stylist::yew::styled_component; | ||
use yew::prelude::*; | ||
|
||
#[derive(Properties, Debug, PartialEq)] | ||
pub struct Props { | ||
#[prop_or_default] | ||
pub children: Children, | ||
} | ||
|
||
#[styled_component] | ||
pub fn Breakpoint(props: &Props) -> Html { | ||
html! { | ||
<div | ||
class={css!(r#" | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
"#)} | ||
> | ||
{props.children.clone()} | ||
</div> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use stylist::yew::styled_component; | ||
use yew::prelude::*; | ||
|
||
#[derive(Properties, Debug, PartialEq)] | ||
pub struct Props { | ||
#[prop_or_default] | ||
pub children: Children, | ||
} | ||
|
||
#[styled_component] | ||
pub fn Cursor(props: &Props) -> Html { | ||
html! { | ||
<div | ||
class={css!(r#" | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
"#)} | ||
> | ||
{props.children.clone()} | ||
</div> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use stylist::yew::styled_component; | ||
use yew::prelude::*; | ||
|
||
#[derive(Properties, Debug, PartialEq)] | ||
pub struct Props { | ||
#[prop_or_default] | ||
pub children: Children, | ||
} | ||
|
||
#[styled_component] | ||
pub fn Flex(props: &Props) -> Html { | ||
html! { | ||
<div | ||
class={css!(r#" | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
"#)} | ||
> | ||
{props.children.clone()} | ||
</div> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
mod breakpoint; | ||
mod cursor; | ||
mod draggable; | ||
mod flex; | ||
mod modal; | ||
mod resizable; | ||
mod scrollable; | ||
|
||
pub use breakpoint::Breakpoint; | ||
pub use cursor::Cursor; | ||
pub use draggable::Draggable; | ||
pub use flex::Flex; | ||
pub use modal::Modal; | ||
pub use resizable::Resizable; | ||
pub use scrollable::Scrollable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
// https://m3.material.io/components/ | ||
// https://vuetifyjs.com/zh-Hans/ |