From 10152a2fc2b3de942b9f08d81c81d6566003d336 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 2 Oct 2025 13:16:37 +0200 Subject: feat(buy): Add the framework for the /buy page --- src/components/input_placeholder.rs | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/components/input_placeholder.rs (limited to 'src/components/input_placeholder.rs') diff --git a/src/components/input_placeholder.rs b/src/components/input_placeholder.rs new file mode 100644 index 0000000..92f9926 --- /dev/null +++ b/src/components/input_placeholder.rs @@ -0,0 +1,77 @@ +use leptos::{ + IntoView, component, + html::Input, + prelude::{ClassAttribute, ElementChild, GlobalAttributes, NodeRef, NodeRefAttribute}, + view, +}; +use uuid::Uuid; + +#[component] +pub fn InputPlaceholder( + input_type: &'static str, + label: &'static str, + node_ref: NodeRef, + #[prop(default = None)] initial_value: Option, +) -> impl IntoView { + let id = Uuid::new_v4(); + + view! { +
+ + + // TODO: Reference `var(--tw-border-2)` instead of the `2 px` <2025-10-01> +
+ + +
+ } +} -- cgit 1.4.1