graphql / graphql-playground

🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)
MIT License
8.75k stars 730 forks source link

Modifying the new tab placeholder text #1340

Open evargast opened 3 years ago

evargast commented 3 years ago

This issue pertains to the following package(s):

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.