Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying the new tab placeholder text #1340

Open
1 of 7 tasks
evargast opened this issue Jul 27, 2021 · 0 comments
Open
1 of 7 tasks

Modifying the new tab placeholder text #1340

evargast opened this issue Jul 27, 2021 · 0 comments

Comments

@evargast
Copy link

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

N/A

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

-react

What is the expected behavior?

There should be a way for developers to modify / customize this default placeholder without having to leverage the tabs props

What is the actual behavior?

There is no smooth way of changing this place holder, only way we could find is to use the tabs prop and pass it a custom query

    const tabs = [
        {
            name: "Sample Query",
            query: "Custom placeholder here",
        },
    ];

What steps may we take to reproduce the behavior?

Please provide a gif or image of the issue for a quicker response/fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant