How to achieve tabbed code blocks in Gatsby and Asciidoctor.js?

I’m using Gatsby and Asciidoctor.js to develop a documentation web site,
I need to fetch same code samples for multiple languages (e.g. same code for both JAVA and Kotlin) and represent them as tabbed code blocks.
I have found this extension, but this is for AsciidoctorJ,
Is there any way that I can achieve this on Asciidocor.js or some how use mentioned Java plugin in Asciidoctor.js?