commercetools-docs-kit icon indicating copy to clipboard operation
commercetools-docs-kit copied to clipboard

Code block title doesn’t appear when using MultiCodeBlock

Open Anshuman71 opened this issue 2 years ago • 2 comments

When using the MultiCodeBlock syntax, the code block titles don't appear. For example, for the following code:

21-11-2023-at-14-08-01@2x

the output is:

21-11-2023-at-14-08-25@2x

Anshuman71 avatar Nov 21 '23 08:11 Anshuman71

the MultiCodeBlock is intentionally built for the same example but in different programming languages that share the same title (there is a title prop in the MultiCodeBlock component)

if you need to have two different examples with two different titles they need to be two different blocks

FFawzy avatar Jan 25 '24 10:01 FFawzy

We will improve the docs for this component here to further explain this

FFawzy avatar Jan 25 '24 10:01 FFawzy