Skip to content

Commit

Permalink
🚧 Add empty module.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Oct 27, 2024
1 parent c341c3f commit 3ff2a28
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/components/src/form/picker/file.rs
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 FilePicker(props: &Props) -> Html {
html! {
<div
class={css!(r#"
display: flex;
align-items: center;
justify-content: center;
"#)}
>
{props.children.clone()}
</div>
}
}
2 changes: 2 additions & 0 deletions packages/components/src/form/picker/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
mod color;
mod date;
mod date_time;
mod file;
mod time;

pub use color::ColorPicker;
pub use date::DatePicker;
pub use date_time::DateTimePicker;
pub use file::FilePicker;
pub use time::TimePicker;

0 comments on commit 3ff2a28

Please sign in to comment.