The Heroicons code bracket icon depicts curly braces, commonly used in UI to represent code snippets, programming, or technical settings.
Common uses
- Button to view/edit code
- Link to API documentation
- Section for developer settings
Use it in React
Install
npm i @heroicons/reactImport & render
import { CodeBracketIcon } from '@heroicons/react/24/outline';
<CodeBracketIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<CodeBracketIcon className="size-6" />24/solid
<CodeBracketIcon className="size-6" />20/solid
<CodeBracketIcon className="size-6" />16/solid
<CodeBracketIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- codebracketcurly bracessyntaxprogramming
FAQ
- What is the code bracket icon used for?
- It's typically used to signify actions or sections related to code, programming, or technical configurations.
- How do I use the code bracket icon in React?
- Import it using `import { CodeBracketIcon } from '@heroicons/react/24/outline'` and then use it as a component like `<CodeBracketIcon className="h-6 w-6" />`.
- What is the license for this icon?
- The Heroicons library, including this icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →