# Message Editing
URL: /docs/guides/editing
Allow users to edit their messages with custom editor interfaces.
***
title: Message Editing
description: Allow users to edit their messages with custom editor interfaces.
------------------------------------------------------------------------------
Give the user the ability to edit their message.
## Enabling edit support
You can show an editor interface by using `ComposerPrimitive`.
```tsx {1,11,25,31-43}
import { ComposerPrimitive } from "@assistant-ui/react";
...
const Thread = () => {
return (
...
...
);
};
const UserMessage = () => {
return (
...
...
{/* <-- add a button to enable edit mode */}
);
};
// define a new component
const EditComposer = () => {
return (
// you can return a MessagePrimitive including a ComposerPrimitive, or only a ComposerPrimitive
...
);
};
```