You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add new option for admin.components.header (#7647)
## Description
Adds `admin.components.header` option to allow users to insert custom
components in the page header / top of page.
[Related
discussion](#7584)
- [X] I have read and understand the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository.
## Type of change
- [ ] Chore (non-breaking change which does not add functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Change to the
[templates](https://github.com/payloadcms/payload/tree/main/templates)
directory (does not affect core functionality)
- [ ] Change to the
[examples](https://github.com/payloadcms/payload/tree/main/examples)
directory (does not affect core functionality)
- [x] This change requires a documentation update
## Checklist:
- [x] I have added tests that prove my fix is effective or that my
feature works - will add
- [X] Existing test suite passes locally with my changes
Copy file name to clipboardExpand all lines: docs/admin/components.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,8 @@ The following options are available:
276
276
|**`graphics.Icon`**| The simplified logo used in contexts like the the `Nav` component. |
277
277
|**`graphics.Logo`**| The full logo used in contexts like the `Login` view. |
278
278
|**`providers`**| Custom [React Context](https://react.dev/learn/scaling-up-with-reducer-and-context) providers that will wrap the entire Admin Panel. [More details](#custom-providers). |
279
-
|**`actions`**| An array of Custom Components to be rendered in the header of the Admin Panel, providing additional interactivity and functionality. |
279
+
|**`actions`**| An array of Custom Components to be rendered _within_ the header of the Admin Panel, providing additional interactivity and functionality. |
280
+
|**`header`**| An array of Custom Components to be injected above the Payload header. |
280
281
|**`views`**| Override or create new views within the Admin Panel. [More details](./views). |
0 commit comments