Iframe Pane

By Simeon Griggs

Display any URL in a View Pane, along with helpful buttons to Copy the URL or open in a new tab.

sanity-plugin-iframe-pane

Display any URL in a View Pane, along with helpful buttons to Copy the URL or open in a new tab.

Accepts either a string or an async function to resolve a URL based on the current document.

Iframe View Pane

Installation

sanity install iframe-pane

This is designed to be used as a Component inside of a View.

// ./src/deskStructure.js
import Iframe from 'sanity-plugin-iframe-pane'

// ...all other list items

S.view
  .component(Iframe)
  .options({
    // Accepts an async function
    url: (doc) => resolveProductionUrl(doc),
    // OR a string
    url: `https://sanity.io`,
  })
  .title('Preview')

License

MIT © Simeon Griggs See LICENSE

Install command

sanity install iframe-pane

Contributor

Simeon Griggs

🇦🇺 in 🇬🇧 – Solution Engineer @ Sanity

Simeon is located at Newcastle upon Tyne, UK
Visit Simeon Griggs's profile

Other plugins by author

SEO Pane

Run yoast.js analysis on your front end, refreshing as you edit your Document, from inside a View Pane.

Simeon Griggs
Go to SEO Pane

Documents Pane

Display the results of any GROQ Query inside a View Pane

Simeon Griggs
Go to Documents Pane

Quick Fields Helper Function

Writing Sanity Schema can get verbose and repetitive. Quick Fields is a helper function with sensible defaults to tidy up schema files.

Simeon Griggs
Go to Quick Fields Helper Function