>,
children: Children,
) -> impl IntoView {
@@ -32,6 +34,8 @@ pub fn Space(
@@ -46,3 +50,55 @@ pub fn Space(
}
}
+
+#[derive(Clone)]
+pub enum SpaceAlign {
+ FlexStart,
+ FlexEnd,
+ Start,
+ End,
+ Center,
+ Baseline,
+ Stretch,
+}
+
+impl SpaceAlign {
+ fn as_str(&self) -> &'static str {
+ match self {
+ Self::FlexStart => "flex-start",
+ Self::FlexEnd => "flex-end",
+ Self::Start => "start",
+ Self::End => "end",
+ Self::Center => "center",
+ Self::Baseline => "baseline",
+ Self::Stretch => "stretch",
+ }
+ }
+}
+
+#[derive(Clone)]
+pub enum SpaceJustify {
+ FlexStart,
+ FlexEnd,
+ Start,
+ End,
+ Center,
+ SpaceAround,
+ SpaceBetween,
+ SpaceEvenly,
+}
+
+impl SpaceJustify {
+ fn as_str(&self) -> &'static str {
+ match self {
+ Self::FlexStart => "flex-start",
+ Self::FlexEnd => "flex-end",
+ Self::Start => "start",
+ Self::End => "end",
+ Self::Center => "center",
+ Self::SpaceAround => "space-around",
+ Self::SpaceBetween => "space-between",
+ Self::SpaceEvenly => "space-evenly",
+ }
+ }
+}