๐Ÿ“ฆ payloadcms / custom-field-guide

โ˜… 27 stars โ‘‚ 3 forks ๐Ÿ‘ 27 watching
๐Ÿ“ฅ Clone https://github.com/payloadcms/custom-field-guide.git
HTTPS git clone https://github.com/payloadcms/custom-field-guide.git
SSH git clone git@github.com:payloadcms/custom-field-guide.git
CLI gh repo clone payloadcms/custom-field-guide
Elliot DeNolf Elliot DeNolf Update readme.md 3cb4465 1 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ .env.example
๐Ÿ“„ .gitignore
๐Ÿ“„ color-picker.gif
๐Ÿ“„ nodemon.json
๐Ÿ“„ package.json
๐Ÿ“„ readme.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Custom Field Sample Project - Color Picker

This is an example Payload CMS project that has a custom color picker field and was created for the blog post Building a Custom Field for Payload

Color Picker Field Features

  • Payload compatible field configuration
  • Custom input for admin panel
  • Custom Cell component
  • Input validation for frontend and backend
  • User preferences that remember individual user's color choices
Component Demo

Prerequisites:

  • MongoDB
  • Node

Steps to run this project:

  • git clone git@github.com:payloadcms/custom-field-guide.git
  • cp .env.example .env
  • edit .env file to have valid MongoDB connection
  • yarn or npm install
  • yarn dev or npm run dev
  • after startup open web browser to localhost:3000/admin