diff --git a/packages/builder/src/components/common/Input.svelte b/packages/builder/src/components/common/Input.svelte
index 04272c1d76..49f3c356de 100644
--- a/packages/builder/src/components/common/Input.svelte
+++ b/packages/builder/src/components/common/Input.svelte
@@ -5,13 +5,23 @@
export let textAlign = "left"
export let width = "160px"
export let placeholder = ""
+ export let suffix = ""
+ export let onChange = val => {}
let centerPlaceholder = textAlign === "center"
let style = buildStyle({ width, textAlign })
+
+ function handleChange(val) {
+ value = val
+ onChange(value)
+ }
+
+ $: displayValue = suffix && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : value
+
-
+ handleChange(e.target.value)} />