Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.01 KB

code-groups.mdx

File metadata and controls

53 lines (41 loc) · 1.01 KB
title description icon
Code Groups
The CodeGroup component lets you combine code blocks in a display separated by tabs
rectangle-code

You will need to make Code Blocks then add the <CodeGroup> component around them. Every Code Block must have a filename because we use the names for the tab buttons.

See below for an example of the end result.

console.log("Hello World");
print('Hello World!')
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
````md Code Group Example
console.log("Hello World");
print('Hello World!')
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
````