diff --git a/packages/components/src/container/system/breakpoint.rs b/packages/components/src/container/system/breakpoint.rs new file mode 100644 index 0000000..bcf5ce3 --- /dev/null +++ b/packages/components/src/container/system/breakpoint.rs @@ -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! { +
+ {props.children.clone()} +
+ } +} diff --git a/packages/components/src/container/system/cursor.rs b/packages/components/src/container/system/cursor.rs new file mode 100644 index 0000000..784637e --- /dev/null +++ b/packages/components/src/container/system/cursor.rs @@ -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! { +
+ {props.children.clone()} +
+ } +} diff --git a/packages/components/src/container/system/flex.rs b/packages/components/src/container/system/flex.rs new file mode 100644 index 0000000..40659cc --- /dev/null +++ b/packages/components/src/container/system/flex.rs @@ -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! { +
+ {props.children.clone()} +
+ } +} diff --git a/packages/components/src/container/system/mod.rs b/packages/components/src/container/system/mod.rs index 0fa2161..1df33ad 100644 --- a/packages/components/src/container/system/mod.rs +++ b/packages/components/src/container/system/mod.rs @@ -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; diff --git a/packages/theme/src/prelude/material/mod.rs b/packages/theme/src/prelude/material/mod.rs index 32ece26..e4cc52d 100644 --- a/packages/theme/src/prelude/material/mod.rs +++ b/packages/theme/src/prelude/material/mod.rs @@ -1 +1,2 @@ // https://m3.material.io/components/ +// https://vuetifyjs.com/zh-Hans/