# Rename \`IconElement\` to just \`Icon\` \(\#3974\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fa53353c575897b01e04eeeddb90d4e16729a700

Requested commit: fa53353c575897b01e04eeeddb90d4e16729a700

Commit: fa53353c575897b01e04eeeddb90d4e16729a700

Tree: 523db541e54652471b60364a430f21e1781f634e

Author: Marshall Bowers

Committer: GitHub

## Message

```
Rename `IconElement` to just `Icon` (#3974)

This PR renames the `IconElement` component to just `Icon`.

This better matches the rest of our components, as `IconElement` was the
only one using this naming convention.

The `Icon` enum has been renamed to `IconName` to free up the name.

I was trying to come up with a way that would allow rendering an
`Icon::Zed` directly (and thus make the `IconElement` a hidden part of
the API), but I couldn't come up with a way to do this cleanly.

Release Notes:

- N/A
```

## Parents

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

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