GraphiQL API Documentation
    Preparing search index...

    Interface GraphiQLPlugin

    interface GraphiQLPlugin {
        content: ComponentType;
        icon: ComponentType;
        sessionActions?: ComponentType;
        title: string;
    }
    Index
    content: ComponentType

    A component that renders content into the plugin pane.

    icon: ComponentType

    A component that renders an icon that will be shown inside a button that toggles the plugin visibility.

    sessionActions?: ComponentType

    An always-mounted component rendered in the session-header actions area for every registered plugin, regardless of whether the plugin's pane is visible. Use it to add toolbar buttons, mount dialogs, or register behavior such as a save handler. Unlike content, this stays mounted for the lifetime the plugin is registered.

    title: string

    The unique title of the plugin. If two plugins are present with the same title, the provider component will throw an error.