diff --git a/src/components/date.rs b/src/components/date.rs new file mode 100644 index 0000000..a73d79e --- /dev/null +++ b/src/components/date.rs @@ -0,0 +1,47 @@ +use leptos::prelude::*; + +/// # Date Component +/// +/// +/// Example usage: +/// ``` + +/// ``` +#[component] +pub fn Date( + /// The main label displayed on the button. + #[prop(into)] + title: String, + /// The calendar date of the event + #[prop(into)] + date: String, + /// A brief explanatory text that describes the destination page. + #[prop(into)] + description: String, + /// The file path or URL of the icon displayed at the top of the button. + #[prop(into)] + icon: String, + // The status of the event (open, upcoming, deadline...) + //#[prop(into)] status: String, +) -> impl IntoView { + view! { +
+ } +}