14 lines
313 B
Plaintext
14 lines
313 B
Plaintext
// Text input. Pairs with the validation system (name maps to a field).
|
|
component Input {
|
|
props {
|
|
type = "text"
|
|
name = ""
|
|
value = ""
|
|
placeholder = ""
|
|
class = ""
|
|
}
|
|
view {
|
|
<input type="{type}" name="{name}" value="{value}" placeholder="{placeholder}" class="wire-input {class}">
|
|
}
|
|
}
|