Skip to main contentCarbon Design System

Code snippet

Preview the code snippet component with the React live demo. For detailed code usage documentation, see the Storybooks for each framework below.

Documentation

Live demo

<CodeSnippet type="single">
node -v
</CodeSnippet>
CodeSnippet
Modifiers

Sample data

const codeSnippet = `@mixin grid-container {
width: 100%;
padding-right: padding(mobile);
padding-left: padding(mobile);
@include breakpoint(bp--xs--major) {
padding-right: padding(xs);
padding-left: padding(xs);
}