carbon-components-solid
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "carbon-components-solid", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "author": "Michael Neumann", |
@@ -105,2 +105,6 @@ import { console } from "global"; | ||
const [lastName, setLastName] = createSignal(""); | ||
const [lastNameBlur, setLastNameBlur] = createSignal(""); | ||
const [lastNameVisited, setLastNameVisited] = createSignal(false); | ||
return ( | ||
@@ -130,2 +134,14 @@ <> | ||
/> | ||
<TextInput | ||
type="text" | ||
required | ||
labelText="Last name (on Blur)" | ||
placeholder="Enter last name..." | ||
invalid={lastNameVisited() && lastNameBlur().length < 1} | ||
invalidText="Required" | ||
value={[lastNameBlur, setLastNameBlur]} | ||
onBlur={() => setLastNameVisited(true)} | ||
/> | ||
</FormGroup> | ||
@@ -132,0 +148,0 @@ </Form> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
213597
6021