Skip to content

Add a label property to snippets to override the generated tab label#24

Open
jackwakefield wants to merge 6 commits intoKong:masterfrom
AlsoAsked:master
Open

Add a label property to snippets to override the generated tab label#24
jackwakefield wants to merge 6 commits intoKong:masterfrom
AlsoAsked:master

Conversation

@jackwakefield
Copy link
Copy Markdown

This allows for custom labels like below

<CodeSnippetWidget
  har={exampleHAR}
  snippets={[
    {
      prismLanguage: "javascript",
      target: "javascript",
      client: "jquery",
      label: "JavaScript (jQuery)"
    },
    {
      prismLanguage: "bash",
      target: "shell",
      client: "curl",
      label: "cURL"
    },
  ]}
/>

image

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 31, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants