MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getInputType

Function getInputType

packages/ui/src/ui-component/input/Input.jsx:32–46  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

30 }
31
32 const getInputType = (type) => {
33 switch (type) {
34 case 'string':
35 return 'text'
36 case 'password':
37 case 'url':
38 return 'password'
39 case 'number':
40 return 'number'
41 case 'email':
42 return 'email'
43 default:
44 return 'text'
45 }
46 }
47
48 const handleTogglePasswordVisibility = () => {
49 const inputElement = inputElementRef.current

Callers 1

InputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected