+
+ Key
+ setState({ ...state, key: key })}
+ autoComplete="off"
+ autoCapitalize="off"
+ />
+
+
+ Type of Property
+
+ setState({
+ ...state,
+ propertyType: value,
+ value: value === 'string' ? '' : 'true',
+ })
+ }
+ value={state.propertyType}
+ options={[
+ {
+ value: 'string',
+ label: 'Text or Number',
+ },
+ {
+ value: 'boolean',
+ label: 'Boolean or Null',
+ },
+ ]}
+ fullWidth
+ />
+
+
+ Value
+ {state.propertyType === 'boolean' ? (
+
+ setState({
+ ...state,
+ value: value,
+ })
+ }
+ fullWidth
+ value={state.value}
+ options={[
+ {
+ value: 'true',
+ label: 'True',
+ },
+ {
+ value: 'false',
+ label: 'False',
+ },
+ {
+ value: 'null',
+ label: 'Null',
+ },
+ ]}
+ size="small"
+ />
+ ) : (
+ setState({ ...state, value: value })}
+ onKeyDown={(e) => e.key === 'Enter' && saveProperty()}
+ autoComplete="off"
+ autoCapitalize="off"
+ />
+ )}
+
+
+