123
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
import { Checkbox, CheckboxProps } from '@mantine/core';
|
||||
|
||||
type Props = CheckboxProps;
|
||||
|
||||
const BooleanField = (props: Props) => {
|
||||
return <Checkbox {...props} />;
|
||||
};
|
||||
export default BooleanField;
|
||||
9
components/ObjectForm/Fields/NumberField/NumberField.tsx
Normal file
9
components/ObjectForm/Fields/NumberField/NumberField.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { NumberInput, NumberInputProps } from '@mantine/core';
|
||||
|
||||
type Props = NumberInputProps;
|
||||
|
||||
const NumberField = (props: Props) => {
|
||||
return <NumberInput hideControls {...props} />;
|
||||
};
|
||||
|
||||
export default NumberField;
|
||||
9
components/ObjectForm/Fields/StringField/StringField.tsx
Normal file
9
components/ObjectForm/Fields/StringField/StringField.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { TextInput, TextInputProps } from '@mantine/core';
|
||||
|
||||
type Props = TextInputProps;
|
||||
|
||||
const StringField = (props: Props) => {
|
||||
return <TextInput {...props} />;
|
||||
};
|
||||
|
||||
export default StringField
|
||||
Reference in New Issue
Block a user