# Clean up Element API and start on docs \(\#3821\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/789db30c42402ed9b13f6688aa090e56131788d5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 789db30c42402ed9b13f6688aa090e56131788d5

Requested commit: 789db30c42402ed9b13f6688aa090e56131788d5

Commit: 789db30c42402ed9b13f6688aa090e56131788d5

Tree: 5684f2bc8c6dfdb9a9eea126c494f19d6854e2a3

Author: Nathan Sobo

Committer: GitHub

## Message

```
Clean up Element API and start on docs (#3821)

Getting some scaffold docs in place and making some naming adjustments
to improve consistency with Rust APIs and clarity.

- Render::Element -> Render::Output, and Render::Output is now only
required to be IntoElement instead of Element so we can return
components.
- RenderOnce::Element -> RenderOnce::Output
- Element::layout -> Render::request_layout - Clarify that this doesn't
actually *perform* layout, but simply requests

Release Notes:

- N/A
```

## Parents

- [219999cd8d4959c5795c32c182bfa210a48d6c97](https://git.cafe/gitcafe/zed/commit/219999cd8d4959c5795c32c182bfa210a48d6c97?format=markdown)

- [f8368737641c878c14b3020f6cb2933a13f6a49f](https://git.cafe/gitcafe/zed/commit/f8368737641c878c14b3020f6cb2933a13f6a49f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/789db30c42402ed9b13f6688aa090e56131788d5?format=markdown)
