# Rework \`ListItem\` to use \`children\` \(\#3387\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cac6e22e8e6f207138ff4dc6560d688d547d6112

Requested commit: cac6e22e8e6f207138ff4dc6560d688d547d6112

Commit: cac6e22e8e6f207138ff4dc6560d688d547d6112

Tree: 3d9caea79bc530fddad4f246229be570fa4db283

Author: Marshall Bowers

Committer: GitHub

## Message

```
Rework `ListItem` to use `children` (#3387)

This PR reworks the `ListItem` component to accept `children` rather
than just a `Label`.

This is a step towards making the `ListItem` component more open.

As part of this the `ContextMenu` was simplified to only construct the
various list components in `render` rather than holding them as part of
its state.

Release Notes:

- N/A
```

## Parents

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

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

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