chore: PC change (create multientry)
This commit is contained in:
1 parent
127cf17c90
commit
9d18eb0810
8 files changed
+302
-5
No files matched your search
@@ -7,6 +7,7 @@ pub fn OutlinedTextField(
|
||||
#[prop(default = RwSignal::new(false))] disabled: RwSignal<bool>,
|
||||
#[prop(default = String::from(""))] name: String,
|
||||
#[prop(default = String::from(""))] label: String,
|
||||
#[prop(default = String::from(""))] input_type: String,
|
||||
) -> impl IntoView {
|
||||
view! (
|
||||
<label>
|
||||
@@ -15,8 +16,8 @@ pub fn OutlinedTextField(
|
||||
class="border-2 m-1.5 p-1.5 rounded-md bg-transparent mt-6 relative transition-all duration-400"
|
||||
class=(["border-red-700"], move || !disabled.get())
|
||||
class=(["border-gray-600", "pointer-events-none"], move || disabled.get())
|
||||
r#type="text"
|
||||
disabled={move || disabled.get()}
|
||||
r#type={input_type}
|
||||
disabled={disabled}
|
||||
placeholder={placeholder}
|
||||
prop:name=name
|
||||
bind:value=value // This is a two-way binding - it is allowed to read *and* write.
|
||||
|
||||
Reference in new issue
Block a user