# Button Positioning

Both the "Save" and "Cancel" buttons can be positioned either before or after the editable component gets rendered. In order to achieve that, you simply pass in the prop buttonsPosition with your preferred value. The default value is set to `'after'`

{% embed url="<https://codesandbox.io/embed/button-position-lyx8y?autoresize=1&fontsize=14&hidenavigation=1&theme=dark&view=split>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://giorgosart.gitbook.io/react-easy-edit/examples/button-positioning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
