https://github.com/thgh/payload-plugin-body-classname
https://github.com/thgh/payload-plugin-body-classname
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thgh/payload-plugin-body-classname
- Owner: thgh
- License: mit
- Created: 2022-11-13T01:10:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T13:33:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T01:17:05.233Z (over 1 year ago)
- Language: TypeScript
- Size: 323 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Add the collection slug to the body classname in Payload CMS admin for easy styling
## Features
- Adds the collection slug to the body on the List & Edit page
## Installation
```
npm install payload-plugin-body-classname
# or
yarn add payload-plugin-body-classname
```
## Usage
```js
// payload.config.ts
import { bodyClassname } from 'payload-plugin-body-classname'
export default buildConfig({
plugins: [bodyClassname],
})
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Contributions and feedback are very welcome.
To get it running:
1. Clone the project.
2. `npm install`
3. `npm run build`
## Credits
- [Thomas Ghysels](https://github.com/thgh)
- [All Contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
[link-contributors]: ../../contributors