release: WRNexusJS 0.3.5
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
// Text input. Pairs with the validation system (name maps to a field).
|
||||
component Input {
|
||||
props {
|
||||
type = "text"
|
||||
size = "default"
|
||||
color = "primary"
|
||||
label = "Input"
|
||||
name = ""
|
||||
value = ""
|
||||
placeholder = ""
|
||||
type = "text"
|
||||
min = ""
|
||||
max = ""
|
||||
step = ""
|
||||
disabled = false
|
||||
required = false
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<input type="{type}" name="{name}" value="{value}" placeholder="{placeholder}" class="wire-input {class}">
|
||||
<label class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--field wire-next--input {class}"><span>{label}</span><input {...attrs} type="{type}" name="{name}" value="{value}" placeholder="{placeholder}" min="{min}" max="{max}" step="{step}" disabled="{disabled}" required="{required}" /></label>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user