thgh / payload-plugin-body-classname

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the collection slug to the body classname in Payload CMS admin for easy styling

Software License Issues NPM

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

// payload.config.ts
import { bodyClassname } from 'payload-plugin-body-classname'

export default buildConfig({
  plugins: [bodyClassname],
})

Changelog

Please see CHANGELOG 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

License

The MIT License (MIT). Please see License File for more information.

About

License:MIT License


Languages

Language:TypeScript 100.0%