Adds an info icon beside field labels in the Payload admin that opens a tooltip with help text. Text comes from admin.custom.infoTooltip, or optionally from existing admin.description values converted automatically. Setup requires registering the plugin and regenerating the import map. Supports Payload 3.90.2 and later, including Payload 4 betas.
Shows Payload field descriptions and admin.custom.infoTooltip as an info icon tooltip.
Installation
npm i @alphanull/payload-plugin-info-tooltip7
Stars
0
Forks
0
Open Issues
1 months ago
Last Updated
28
Weekly Downloads
v1.0.1
npm Version
57.3 KB
Unpacked Size
0
Dependencies
7+7 since Oct 11
| Date | Stars |
|---|---|
| Dec 5, 2026 | 7 |
| Dec 4, 2026 | 7 |
| Dec 3, 2026 | 7 |
| Dec 2, 2026 | 7 |
| Dec 1, 2026 | 7 |
| Nov 30, 2026 | 7 |
| Nov 29, 2026 | 7 |
| Nov 28, 2026 | 7 |
| Nov 27, 2026 | 7 |
| Nov 26, 2026 | 7 |
| Nov 25, 2026 | 7 |
| Nov 24, 2026 | 7 |
| Nov 23, 2026 | 7 |
| Nov 22, 2026 | 7 |
| Nov 21, 2026 | 7 |
| Nov 20, 2026 | 7 |
| Nov 19, 2026 | 7 |
| Nov 18, 2026 | 7 |
| Nov 17, 2026 | 7 |
| Nov 16, 2026 | 7 |
| Nov 15, 2026 | 7 |
| Nov 14, 2026 | 7 |
| Nov 13, 2026 | 7 |
| Nov 12, 2026 | 7 |
| Nov 11, 2026 | 7 |
| Nov 10, 2026 | 7 |
| Nov 9, 2026 | 7 |
| Nov 8, 2026 | 7 |
| Nov 7, 2026 | 7 |
| Nov 6, 2026 | 7 |
| Nov 5, 2026 | 7 |
| Nov 4, 2026 | 7 |
| Nov 3, 2026 | 6 |
| Nov 2, 2026 | 6 |
| Nov 1, 2026 | 6 |
| Oct 31, 2026 | 6 |
| Oct 30, 2026 | 6 |
| Oct 29, 2026 | 6 |
| Oct 28, 2026 | 6 |
| Oct 27, 2026 | 6 |
| Oct 26, 2026 | 6 |
| Oct 25, 2026 | 6 |
| Oct 24, 2026 | 6 |
| Oct 23, 2026 | 6 |
| Oct 22, 2026 | 6 |
| Oct 21, 2026 | 6 |
| Oct 20, 2026 | 6 |
| Oct 19, 2026 | 5 |
| Oct 18, 2026 | 5 |
| Oct 17, 2026 | 0 |
| Oct 16, 2026 | 0 |
| Oct 15, 2026 | 0 |
| Oct 14, 2026 | 0 |
| Oct 13, 2026 | 0 |
| Oct 12, 2026 | 0 |
| Oct 11, 2026 | 0 |
31−311 since Oct 20
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 31 |
| Dec 4, 2026 | 30 |
| Dec 3, 2026 | 56 |
| Dec 2, 2026 | 54 |
| Dec 1, 2026 | 50 |
| Nov 30, 2026 | 50 |
| Nov 29, 2026 | 55 |
| Nov 28, 2026 | 54 |
| Nov 27, 2026 | 55 |
| Nov 26, 2026 | 28 |
| Nov 25, 2026 | 37 |
| Nov 24, 2026 | 41 |
| Nov 23, 2026 | 43 |
| Nov 22, 2026 | 55 |
| Nov 21, 2026 | 73 |
| Nov 20, 2026 | 74 |
| Nov 19, 2026 | 69 |
| Nov 18, 2026 | 62 |
| Nov 17, 2026 | 64 |
| Nov 16, 2026 | 69 |
| Nov 15, 2026 | 56 |
| Nov 14, 2026 | 42 |
| Nov 13, 2026 | 49 |
| Nov 12, 2026 | 51 |
| Nov 11, 2026 | 52 |
| Nov 10, 2026 | 51 |
| Nov 9, 2026 | 46 |
| Nov 8, 2026 | 58 |
| Nov 7, 2026 | 53 |
| Nov 6, 2026 | 52 |
| Nov 5, 2026 | 51 |
| Nov 4, 2026 | 46 |
| Nov 3, 2026 | 50 |
| Nov 2, 2026 | 75 |
| Nov 1, 2026 | 65 |
| Oct 31, 2026 | 71 |
| Oct 30, 2026 | 73 |
| Oct 29, 2026 | 68 |
| Oct 28, 2026 | 67 |
| Oct 27, 2026 | 81 |
| Oct 26, 2026 | 395 |
| Oct 25, 2026 | 388 |
| Oct 24, 2026 | 381 |
| Oct 23, 2026 | 365 |
| Oct 22, 2026 | 365 |
| Oct 21, 2026 | 365 |
| Oct 20, 2026 | 342 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1423295618-root)<a href="https://payloaddirectory.dev/plugins/1423295618-root"><img src="https://payloaddirectory.dev/badge/1423295618-root.svg" alt="Payload Directory"></a>README
Payload CMS plugin that shows field help as an info icon tooltip next to the label, instead of a description under the field.
Long field descriptions push the admin form apart, and may add unnecessary clutter for information rarely accessed. This plugin adds support to add additional information like help text into a small info icon next to the field label, as well as the ability to automatically convert existing field descriptions into tooltips.
admin.custom.infoTooltip as an info icon next to the field label.admin.description: a string, a locale object, or a function ({ t, i18n }) => string.admin.description into a tooltip (useDescriptions: true), with a per-field opt-out.lexicalEditor calls.LabelWithInfo and InfoTooltip for labels you write yourself, and a labelComponent option to swap labels by rule.![]() | ![]() |
|---|---|
| Standard field descriptions without Plugin | Plugin enabled, with descriptions converted to tooltips |
pnpm add @alphanull/payload-plugin-info-tooltip
import { buildConfig } from 'payload'
import { infoTooltipPlugin } from '@alphanull/payload-plugin-info-tooltip'
export default buildConfig({
plugins: [
infoTooltipPlugin({
// options with defaults:
useDescriptions: false,
showInListView: false,
focusable: true,
}),
],
})
All options are optional. infoTooltipPlugin() without options changes nothing until a field sets admin.custom.infoTooltip. The plugin runs after all other plugins, wherever it is listed, so it also covers the fields they add.
| Option | Type | Default | Description |
|---|---|---|---|
useDescriptions | boolean | false | Move every admin.description into the tooltip. See Converting descriptions. |
showInListView | boolean | false | Also show the icon on list-view column headings. |
focusable | boolean | true | Put every icon in the tab order, your own labels included. false drops that tab stop. |
After adding the plugin, regenerate the import map so the admin can load the plugin's components:
pnpm payload generate:importmap
A running dev server does this by itself when the config changes, unless admin.importMap.autoGenerate is false. Commit the updated importMap.js: next build does not generate it.
Set admin.custom.infoTooltip on any field:
import type { CollectionConfig } from 'payload'
export const Pages: CollectionConfig = {
slug: 'pages',
fields: [
{
name: 'slug',
type: 'text',
admin: {
custom: {
infoTooltip: 'Used in the page URL.',
},
},
},
],
}
The value takes the same forms as admin.description:
// String
infoTooltip: 'Used in the page URL.',
// Locale object
infoTooltip: {
en: 'Used in the page URL.',
de: 'Wird in der Seiten-URL verwendet.',
},
// Function
infoTooltip: ({ t }) => t('custom:slugInfo'),
The text is resolved on the server, per request, in the admin UI language (active language, then fallback, then the first key). It is not the content locale from the locale switcher. Functions never reach the browser.
A tooltip and a visible description can be combined:
{
name: 'slug',
type: 'text',
admin: {
description: 'Lowercase only.', // stays under the field
custom: {
infoTooltip: 'Used in the page URL.', // goes into the icon
},
},
}
With useDescriptions: true, every string, locale object, or function admin.description becomes the tooltip and is hidden under the field. It stays in admin.description, so generate:types still writes it into the JSDoc. Fields that set infoTooltip or have their own label keep their description visible.
fields: [
{
name: 'title',
type: 'text',
admin: {
description: ({ t }) => t('custom:titleInfo'), // becomes the tooltip
},
},
{
name: 'notes',
type: 'textarea',
admin: {
description: 'Long text…',
custom: {
infoTooltip: false, // opt out: the description stays visible
},
},
},
]
infoTooltip: false has no effect while useDescriptions is off. Custom description components (admin.components.Description) are not converted. Neither are tab descriptions: Payload renders a tab's title as plain text, with no label slot for the icon.
Payload lets a field replace its label with admin.components.Label, for example to place a button next to it. The plugin leaves such fields alone, so they show no icon by themselves. The components below bring the icon into labels you write yourself. Import them from @alphanull/payload-plugin-info-tooltip/client; their styles load with them.
Render LabelWithInfo inside your label. It renders Payload's FieldLabel, then the icon, then your children. The tooltip text comes from the field's infoTooltip.
{
name: 'prompt',
type: 'textarea',
admin: {
components: {
Label: '/components/PromptLabel#PromptLabel',
},
custom: {
infoTooltip: 'Describe the image you want.', // string or locale object
},
},
}
'use client'
import { LabelWithInfo, type LabelWithInfoProps } from '@alphanull/payload-plugin-info-tooltip/client'
export function PromptLabel(props: LabelWithInfoProps) {
return (
<LabelWithInfo field={props.field} path={props.path} schemaPath={props.schemaPath}>
<button type="button">Generate</button>
</LabelWithInfo>
)
}
Here infoTooltip must be a string or a locale object. Payload would send a function to the browser with the field, so the plugin throws at startup instead. For translated text from a function, use labelComponent.
labelComponent optionUse it when many fields need the same custom label, for example a button next to every rich-text field. labelComponent is a function passed to infoTooltipPlugin(). The plugin calls it for each field it walks, including fields inside Lexical, and renders the returned component in place of its default label. Return undefined to keep the default.
Compared with setting admin.components.Label on each field:
useDescriptions: true, descriptions are still converted. Your component receives the tooltip text resolved on the server as info, so function texts work too.The component is also used for fields without tooltip text. Fields with their own admin.components.Label are skipped. The plugin registers the component for import-map generation.
infoTooltipPlugin({
labelComponent: field =>
field.type === 'richText'
? { path: '/components/RichTextLabel', exportName: 'RichTextLabel' }
: undefined,
})
'use client'
import { LabelWithInfo, type LabelWithInfoProps } from '@alphanull/payload-plugin-info-tooltip/client'
export function RichTextLabel({ readOnly, ...props }: LabelWithInfoProps & { readOnly?: boolean }) {
return (
<LabelWithInfo {...props}>
{!readOnly && <button type="button">Generate</button>}
</LabelWithInfo>
)
}
Props: field, info, path, schemaPath, readOnly, and showInListView.
LabelWithInfo also works with explicit props. InfoTooltip renders the icon alone, for text that is not a Payload label:
<LabelWithInfo htmlFor="prompt" info={hint} label="Prompt" required />
<legend>
Length
<InfoTooltip text={hint} />
</legend>
info, label, and text accept a string or a locale object. className is applied on the root element. focusable overrides the plugin option for one icon.
Fields. When Payload builds the config, the plugin walks collections, globals, and block configs, including tabs, groups, arrays, and blocks. It runs after all other plugins, through Payload's plugin order. A field with tooltip text, or with a labelComponent, gets the plugin's server label. The text, a function included, is a server prop of that label. Payload keeps admin.components on the server, so the function never reaches the browser. The label resolves the text per request and renders LabelWithInfo or your component. A moved description gets an empty Description component that hides it in the form. The components are registered in admin.dependencies, which generate:importmap reads.
Lexical. Fields inside Lexical (link fields, blocks, inline blocks, nested editors) exist only once Payload has built the editor. The plugin wraps the root editor and each field-level editor and walks their feature props each time Payload builds them. Your lexicalEditor calls stay as they are. This walk uses Lexical internals; it is tested on 3.90.2 and 4.0.0-beta.0.
Tooltip. Hovering with a mouse opens the tooltip. A tap, Enter, or Space toggles it. The pointer can move onto the popup, for example to select its text. Escape, a click outside, focus moving elsewhere, or the pointer leaving icon and popup closes it. Screen readers read the text as the icon's description, without opening it. The focusable option is stored in admin.custom.infoTooltip, which Payload sends to the browser, so every icon reads it. The popup opens above the icon and flips below only when the space above is too small and the space below is larger. It stays inside the viewport, and the caret points at the icon in both positions.
Plugin variables, with Payload 4 tokens falling back to Payload 3:
--info-tooltip-bg — var(--color-bg-elevated, var(--theme-input-bg))--info-tooltip-fg — var(--color-text, var(--theme-text))--info-tooltip-icon-size — var(--text-body-medium-font-size, 1rem)--info-tooltip-caret-x — set while open, so the caret stays on the iconPublic class hooks: info-tooltip-label, info-tooltip, info-tooltip__trigger, info-tooltip__popup, info-tooltip__content.
order, which Payload marks as experimental.Label and Description slots, show no icon and keep the description visible. In Payload 4, the experimental slug field does this.pnpm lint # ESLint + Stylelint
pnpm test # Vitest
pnpm build # lint and test first, then bundle and emit types
exports point at src in a workspace. pnpm publish replaces them with publishConfig.exports, which point at dist. npm publish does not, so publish with pnpm.
Copyright © 2026–present Frank Kudermann @ alphanull.de
Topics
theme
Admin UI theme for Payload v4 with three styles and four palettes in light and dark
74343/wk10v4
Payload Advanced Sidebar
Add icons, custom links and animated groups to the Payload admin sidebar
7042/wk7v3
payload label popover
Add descriptive popovers to field labels in the Payload admin panel
3611/wk18v2
payload enhanced sidebar
Tabbed sidebar navigation for the Payload admin that groups collections, globals and custom links
76835/wk32v3 v4
payload plugin menu
Editor-friendly navigation menus with dropdowns, headings, icons and per-entry visibility
76126/wk0v3
payload theme
shadcn-style redesign of the Payload admin with dashboard, command palette, dark mode and live theme customizer
751.8k/wk36v3