Fields
Subheader Field
PayloadCMS text field configuration for subheader/description elements
Preview
import subheaderField from "~/payload/fields/subheader/config";
// Usage in PayloadCMS block/collection config
const description = subheaderField({
name: "description",
label: "Page Description",
required: false,
});
Props
The subheaderField function accepts the following configuration options:
Prop
Type
Installation
npx shadcn@latest add @uifoundry/subheader-field
If you encounter issues, check the registry setup guide for configuration help.
Registry Dependencies
This component uses the following registry components:
- Field Types - TypeScript definitions for PayloadCMS fields
Dependencies
This component requires the following NPM packages: