About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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
Sample data
const codeSnippet = `"scripts": {"build": "lerna run build --stream --prefix --npm-client yarn","ci-check": "carbon-cli ci-check","clean": "lerna run clean && lerna clean --yes && rimraf node_modules","doctoc": "doctoc --title '## Table of Contents'","format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'","format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'","lint": "eslint actions config codemods packages","lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables",