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!");
}
}
console.log("Hello World");
print('Hello World!')
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}