<!-- API Report Version: 2.3 -->

## API Report File for "@atlaskit/inline-edit"

> Do not edit this file. This report is auto-generated using
> [API Extractor](https://api-extractor.com/).
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)

### Table of contents

- [Main Entry Types](#main-entry-types)
- [Peer Dependencies](#peer-dependencies)

### Main Entry Types

<!--SECTION START: Main Entry Types-->

```ts
import { FieldProps } from '@atlaskit/form';
import { jsx } from '@emotion/react';
import { default as React_2 } from 'react';
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';

// @public (undocumented)
interface CommonProps {
	analyticsContext?: Record<string, any>;
	cancelButtonLabel?: string;
	confirmButtonLabel?: string;
	defaultValue: any;
	editButtonLabel?: string;
	hideActionButtons?: boolean;
	isRequired?: boolean;
	keepEditViewOpenOnBlur?: boolean;
	label?: string;
	onCancel?: () => void;
	readViewFitContainerWidth?: boolean;
	startWithEditViewOpen?: boolean;
	validate?: (value: any, formState: {}, fieldState: {}) => Promise<string | void> | string | void;
}

// @public (undocumented)
interface ExtendedFieldProps<FieldValue> extends FieldProps<FieldValue> {
	// (undocumented)
	errorMessage?: string | undefined;
}

// @public (undocumented)
const InlineEdit: <FieldValue extends unknown = string>(
	props: InlineEditProps<FieldValue>,
) => jsx.JSX.Element;
export default InlineEdit;

// @public (undocumented)
export const InlineEditableTextfield: (props: InlineEditableTextfieldProps) => jsx.JSX.Element;

// @public (undocumented)
export interface InlineEditableTextfieldProps extends CommonProps {
	isCompact?: boolean;
	onConfirm: (value: string, analyticsEvent: UIAnalyticsEvent) => void;
	placeholder: string;
	testId?: string;
}

// @public (undocumented)
export interface InlineEditProps<FieldValue> extends CommonProps {
	editView: (
		fieldProps: ExtendedFieldProps<FieldValue>,
		ref: React_2.RefObject<any>,
	) => React_2.ReactNode;
	isEditing?: boolean;
	onConfirm: (value: any, analyticsEvent: UIAnalyticsEvent) => void;
	onEdit?: () => void;
	readView: () => React_2.ReactNode;
}

// (No @packageDocumentation comment for this package)
```

<!--SECTION END: Main Entry Types-->

### Peer Dependencies

<!--SECTION START: Peer Dependencies-->

```json
{
	"react": "^16.8.0"
}
```

<!--SECTION END: Peer Dependencies-->
