Payload CMS Release: 2.32.0

Tag Name: v2.32.0

Release Date: 1/10/2025

Payload CMS LogoPayload CMS

Payload CMS is a modern, self-hosted headless content management system built with TypeScript, Node.js, and MongoDB. It's designed specifically for developers who want full control over their content management system while maintaining a powerful admin interface for content editors.

TL;DR

Payload CMS v2.32.0 exports the CheckboxInput component, making it available for developers to use in custom UI components. This small but useful update enhances the customization capabilities of Payload by exposing more internal components for reuse in custom implementations.

Highlight of the Release

    • CheckboxInput component is now exported and available for use in custom implementations
    • Continues Payload's pattern of gradually exposing more internal components for developer use

Migration Guide

No migration is required for this release. The update simply adds a new export that can be optionally used in custom code.

Upgrade Recommendations

This is a minor feature release that adds a new export without changing existing functionality. It's safe to upgrade without any code changes, and you can start using the newly exported CheckboxInput component at your convenience.

To upgrade:

npm install [email protected]
# or
yarn add [email protected]
# or
pnpm add [email protected]

Bug Fixes

No bug fixes were included in this release.

New Features

Exported CheckboxInput Component

The CheckboxInput component is now exported from Payload's core package, allowing developers to import and use it directly in custom UI implementations. This component provides the standard checkbox functionality and styling used throughout Payload's admin interface.

import { CheckboxInput } from 'payload/components';

// Now you can use it in your custom components
const MyCustomComponent = () => {
  return (
    <CheckboxInput 
      label="My Custom Checkbox"
      onChange={(value) => console.log(value)}
      value={true}
    />
  );
};

This addition follows Payload's ongoing effort to expose more internal components for developers to use in custom implementations, enhancing the customization capabilities of the CMS.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release.

Impact Summary

This release has minimal impact on existing implementations as it only adds a new export without changing any existing functionality. The primary benefit is for developers building custom UI components who can now use Payload's native CheckboxInput component directly, ensuring consistent styling and behavior with the rest of the admin interface.

For teams heavily invested in custom admin UI development with Payload, this addition provides another building block for creating cohesive user experiences without having to recreate checkbox functionality from scratch.

Full Release Notes

Statistics:

File Changed3
Line Additions9
Line Deletions1
Line Changes10
Total Commits2

User Affected:

  • Can now import and use the CheckboxInput component directly in custom UI implementations
  • Have more flexibility when building custom admin UI components that require checkbox functionality
  • Can maintain consistent styling with Payload's native components when building custom interfaces

Contributors:

AlessioGrdenolfe