@openware/components
Advanced tools
Comparing version 2.0.22 to 2.0.23
@@ -43,2 +43,6 @@ import * as React from 'react'; | ||
autoFocus?: boolean; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -45,0 +49,0 @@ /** |
@@ -37,2 +37,6 @@ import * as React from 'react'; | ||
value: string | number; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -39,0 +43,0 @@ /** |
@@ -22,2 +22,6 @@ import * as React from 'react'; | ||
handleChangeValue: (text: string) => void; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -24,0 +28,0 @@ /** |
@@ -43,2 +43,6 @@ import * as React from 'react'; | ||
autoFocus?: boolean; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -45,0 +49,0 @@ /** |
@@ -37,2 +37,6 @@ import * as React from 'react'; | ||
value: string | number; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -39,0 +43,0 @@ /** |
@@ -22,2 +22,6 @@ import * as React from 'react'; | ||
handleChangeValue: (text: string) => void; | ||
/** | ||
* Function for handling 'Enter' key | ||
*/ | ||
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void; | ||
} | ||
@@ -24,0 +28,0 @@ /** |
{ | ||
"name": "@openware/components", | ||
"version": "2.0.22", | ||
"version": "2.0.23", | ||
"description": "CryptoBase React UI Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,4 +5,15 @@ Example of usage: | ||
const handleChange = () => undefined; | ||
const onKeyPress = (event) => { | ||
if (event.key === "Enter") { | ||
console.log("Enter"); | ||
} | ||
}; | ||
<Input type="text" placeholder="Placeholder" min="0" onChangeValue={handleChange} /> | ||
``` | ||
<Input | ||
type="text" | ||
placeholder="Placeholder" | ||
min="0" | ||
onChangeValue={handleChange} | ||
onKeyPress={onKeyPress} | ||
/> | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2657267
16292