UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

21 lines 985 B
import React from 'react'; import { DefaultProps } from '../../theme'; import { TextareaProps, TextareaStylesNames } from '../Textarea/Textarea'; export declare type JsonInputStylesNames = TextareaStylesNames; export interface JsonInputProps extends DefaultProps<JsonInputStylesNames>, Omit<TextareaProps, 'onChange'> { /** Value for controlled input */ value?: string; /** Default value for uncontrolled input */ defaultValue?: string; /** onChange value for controlled input */ onChange?(value: string): void; /** Format json on blur */ formatOnBlur?: boolean; /** Error message shown when json is not valid */ validationError?: React.ReactNode; } export declare function JsonInput({ value, defaultValue, onChange, onFocus, onBlur, error, styles, formatOnBlur, validationError, themeOverride, ...others }: JsonInputProps): JSX.Element; export declare namespace JsonInput { var displayName: string; } //# sourceMappingURL=JsonInput.d.ts.map