-
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
2 changed files
with
25 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 FilePicker(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,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; |