Adds extra tabs to the edit views of collections and globals in the Payload admin, each rendering an iframe. A tab can load a fixed source URL, render custom markup, or take its URL from a watched field value. It is configured through the plugin options and targets Payload 2.x.
A plugin that easily allows you add iframes into separate tabs in the admin panel
Installation
npm i @nouance/payload-iframe-tabs-plugin25
Stars
1
Forks
1
Open Issues
2 years ago
Last Updated
12
Weekly Downloads
v1.0.2
npm Version
26.8 KB
Unpacked Size
0
Dependencies
250 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 25 |
| Dec 5, 2026 | 25 |
| Dec 4, 2026 | 25 |
| Dec 3, 2026 | 25 |
| Dec 2, 2026 | 25 |
| Dec 1, 2026 | 25 |
| Nov 30, 2026 | 25 |
| Nov 29, 2026 | 25 |
| Nov 28, 2026 | 25 |
| Nov 27, 2026 | 25 |
| Nov 26, 2026 | 25 |
| Nov 25, 2026 | 25 |
| Nov 24, 2026 | 25 |
| Nov 23, 2026 | 25 |
| Nov 22, 2026 | 25 |
| Nov 21, 2026 | 25 |
| Nov 20, 2026 | 25 |
| Nov 19, 2026 | 25 |
| Nov 18, 2026 | 25 |
| Nov 17, 2026 | 25 |
| Nov 16, 2026 | 25 |
| Nov 15, 2026 | 25 |
| Nov 14, 2026 | 25 |
| Nov 13, 2026 | 25 |
| Nov 12, 2026 | 25 |
| Nov 11, 2026 | 25 |
| Nov 10, 2026 | 25 |
| Nov 9, 2026 | 25 |
| Nov 8, 2026 | 25 |
| Nov 7, 2026 | 25 |
| Nov 6, 2026 | 25 |
| Nov 5, 2026 | 25 |
| Nov 4, 2026 | 25 |
| Nov 3, 2026 | 25 |
| Nov 2, 2026 | 25 |
| Nov 1, 2026 | 25 |
| Oct 31, 2026 | 25 |
| Oct 30, 2026 | 25 |
| Oct 29, 2026 | 25 |
| Oct 28, 2026 | 25 |
| Oct 27, 2026 | 25 |
| Oct 26, 2026 | 25 |
| Oct 25, 2026 | 25 |
| Oct 24, 2026 | 25 |
| Oct 23, 2026 | 25 |
| Oct 22, 2026 | 25 |
| Oct 21, 2026 | 25 |
| Oct 20, 2026 | 25 |
| Oct 19, 2026 | 25 |
| Oct 18, 2026 | 25 |
| Oct 17, 2026 | 25 |
| Oct 16, 2026 | 25 |
| Oct 15, 2026 | 25 |
| Oct 14, 2026 | 25 |
| Oct 13, 2026 | 25 |
| Oct 12, 2026 | 25 |
| Oct 11, 2026 | 25 |
| Oct 10, 2026 | 25 |
| Oct 9, 2026 | 25 |
| Oct 8, 2026 | 25 |
| Oct 7, 2026 | 25 |
| Oct 6, 2026 | 25 |
| Oct 5, 2026 | 25 |
| Oct 4, 2026 | 25 |
| Oct 3, 2026 | 25 |
| Oct 2, 2026 | 25 |
| Oct 1, 2026 | 25 |
| Sep 30, 2026 | 25 |
| Sep 29, 2026 | 25 |
| Sep 28, 2026 | 25 |
| Sep 27, 2026 | 25 |
| Sep 26, 2026 | 25 |
| Sep 25, 2026 | 25 |
| Sep 24, 2026 | 25 |
| Sep 23, 2026 | 25 |
| Sep 22, 2026 | 25 |
| Sep 21, 2026 | 25 |
| Sep 20, 2026 | 25 |
| Sep 19, 2026 | 25 |
| Sep 18, 2026 | 25 |
| Sep 17, 2026 | 25 |
| Sep 16, 2026 | 25 |
| Sep 15, 2026 | 25 |
| Sep 14, 2026 | 25 |
| Sep 13, 2026 | 25 |
| Sep 12, 2026 | 25 |
| Sep 11, 2026 | 25 |
| Sep 10, 2026 | 25 |
| Sep 9, 2026 | 25 |
| Sep 8, 2026 | 25 |
| Sep 7, 2026 | 25 |
12+7 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 12 |
| Dec 5, 2026 | 12 |
| Dec 4, 2026 | 6 |
| Dec 3, 2026 | 7 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 6 |
| Nov 30, 2026 | 6 |
| Nov 29, 2026 | 8 |
| Nov 28, 2026 | 8 |
| Nov 27, 2026 | 8 |
| Nov 26, 2026 | 7 |
| Nov 25, 2026 | 6 |
| Nov 24, 2026 | 5 |
| Nov 23, 2026 | 5 |
| Nov 22, 2026 | 4 |
| Nov 21, 2026 | 8 |
| Nov 20, 2026 | 7 |
| Nov 19, 2026 | 7 |
| Nov 18, 2026 | 9 |
| Nov 17, 2026 | 8 |
| Nov 16, 2026 | 8 |
| Nov 15, 2026 | 7 |
| Nov 14, 2026 | 3 |
| Nov 13, 2026 | 3 |
| Nov 12, 2026 | 3 |
| Nov 11, 2026 | 3 |
| Nov 10, 2026 | 5 |
| Nov 9, 2026 | 5 |
| Nov 8, 2026 | 8 |
| Nov 7, 2026 | 8 |
| Nov 6, 2026 | 8 |
| Nov 5, 2026 | 8 |
| Nov 4, 2026 | 6 |
| Nov 3, 2026 | 4 |
| Nov 2, 2026 | 4 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 3 |
| Oct 30, 2026 | 3 |
| Oct 29, 2026 | 3 |
| Oct 28, 2026 | 3 |
| Oct 27, 2026 | 4 |
| Oct 26, 2026 | 5 |
| Oct 25, 2026 | 5 |
| Oct 24, 2026 | 3 |
| Oct 23, 2026 | 3 |
| Oct 22, 2026 | 7 |
| Oct 21, 2026 | 7 |
| Oct 20, 2026 | 7 |
| Oct 19, 2026 | 7 |
| Oct 18, 2026 | 8 |
| Oct 17, 2026 | 7 |
| Oct 16, 2026 | 7 |
| Oct 15, 2026 | 3 |
| Oct 14, 2026 | 6 |
| Oct 13, 2026 | 5 |
| Oct 12, 2026 | 4 |
| Oct 11, 2026 | 4 |
| Oct 10, 2026 | 4 |
| Oct 9, 2026 | 4 |
| Oct 8, 2026 | 4 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 1 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 1 |
| Sep 26, 2026 | 3 |
| Sep 25, 2026 | 4 |
| Sep 24, 2026 | 4 |
| Sep 23, 2026 | 4 |
| Sep 22, 2026 | 5 |
| Sep 21, 2026 | 8 |
| Sep 20, 2026 | 8 |
| Sep 19, 2026 | 5 |
| Sep 18, 2026 | 4 |
| Sep 17, 2026 | 4 |
| Sep 16, 2026 | 5 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 2 |
| Sep 13, 2026 | 2 |
| Sep 12, 2026 | 3 |
| Sep 11, 2026 | 3 |
| Sep 10, 2026 | 4 |
| Sep 9, 2026 | 4 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 5 |
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/737641997-root)<a href="https://payloaddirectory.dev/plugins/737641997-root"><img src="https://payloaddirectory.dev/badge/737641997-root.svg" alt="Payload Directory"></a>README
A plugin that easily allows you add iframes into separate tabs in the admin panel.
yarn add @nouance/payload-iframe-tabs-plugin
# OR
npm i @nouance/payload-iframe-tabs-plugin
Currently usage is the same for globals and collections as well.
Basic usage:
import iframeTabsPlugin from '@nouance/payload-iframe-tabs-plugin'
// ...
iframeTabsPlugin({
enabled: true,
collections: [
{
slug: 'examples',
tabs: [
{
name: 'FirstYoutube',
label: 'Michael Scott',
path: '/michael-scott',
src: 'https://www.youtube.com/embed/B9MNITrHu9E',
},
],
},
],
globals: [
{
slug: 'Homepage',
tabs: [
{
name: 'Spongebob',
label: 'Spongebob',
path: '/spongebob',
src: 'https://www.youtube.com/embed/hzond0fF4MM',
iframeProps: {
height: 1080,
width: 1920,
frameBorder: '0',
style: { aspectRatio: '19/10', maxWidth: '100%', height: 'auto' },
},
},
],
},
],
}),
This config is required for all tabs.
name | required | A machine name used for the tab, it must be unique and preferably written in PascalCase
label | required
path | required | A unique path that dictates what URL this tab will be available in
In src mode, you only need to provide the right link for the iframe to render its content. You can then pass an additional iframeProps to style and configure your iframe element.
src | required | Full URL to embeddable content
iframeProps | optional | HTML props for the Iframe element
globals: [
{
slug: 'Homepage',
tabs: [
{
name: 'Spongebob',
label: 'Spongebob',
path: '/spongebob',
src: 'https://www.youtube.com/embed/hzond0fF4MM',
iframeProps: {
height: 1080,
width: 1920,
frameBorder: '0',
style: { aspectRatio: '19/10', maxWidth: '100%', height: 'auto' },
},
},
],
},
],
By providing code instead we will dangerously render any code you provide here.
Use with caution.
code | required | Full markup in string format to dangerously render{
name: 'FigmaDesign',
label: 'Figma Design',
path: '/design',
code: `<iframe style="border: 1px solid rgba(0, 0, 0, 0.1); width: 100%; height: auto; aspect-ratio: 19/10;" width="800" height="450" src="https://www.figma.com/embed?embed_host=share&url=----------" allowfullscreen></iframe>`,
},
Dynamic mode is similar to src mode except that we can fetch your URL from a field value instead.
watchField | required | Field path to watch for updates
iframeProps | optional | HTML props for the Iframe element
{
name: 'Dynamic',
label: 'Dynamic',
path: '/dynamic',
watchField: 'source',
iframeProps: {
height: 1080,
width: 1920,
frameBorder: '0',
style: { aspectRatio: '19/10', maxWidth: '100%', height: 'auto' },
},
},
For development purposes, there is a full working example of how this plugin might be used in the dev directory of this repo.
git clone [email protected]:NouanceLabs/payload-iframe-tabs-plugin.git \
cd payload-iframe-tabs-plugin && yarn \
cd dev && yarn \
cp .env.example .env \
vim .env \ # add your payload details
yarn dev
Topics
payload plugin widgets
Dashboard widgets for KPI figures, lists and charts that read from your Payload collections
77536/wk2v3 v4
payload theme
shadcn-style redesign of the Payload admin with dashboard, command palette, dark mode and live theme customizer
751.8k/wk36v3
payload solid admin bar
WordPress-style admin bar shown in the Payload admin and on the Next.js website for logged-in editors
6596/wk0v3
reset list view
Adds a Reset Preferences button to collection list views to restore default columns, filters and pagination
57314/wk183v3
payload lineage
Admin pages that show a lineage graph and an ERD of your collections, globals, blocks and their linking fields
5472/wk0v3
payload kanban board
Kanban board view for Payload collections with configurable status columns
38111/wk42v2