The Phosphor code icon depicts angle brackets, commonly used to represent code snippets, programming, or development-related actions in user interfaces.
Common uses
- Button to access code editor or settings
- Label for a code block or snippet
- Indicator for a programming or development section
Use it in React
Install
npm i @phosphor-icons/reactImport & render
import { Code } from '@phosphor-icons/react';
<Code size={24} />Styles
Phosphor ships this icon in 6 styles — each its own import:
regular
<Code size={24} />thin
<Code size={24} weight="thin" />light
<Code size={24} weight="light" />bold
<Code size={24} weight="bold" />fill
<Code size={24} weight="fill" />duotone
<Code size={24} weight="duotone" />Details
- Library
- Phosphor (1,512 icons)
- License
- MIT
- viewBox
0 0 256 256- Category
- technology & development
- Keywords
- angle bracketsangle bracessnippetstechnology & developmenteditorcodecode snippet
FAQ
- What does the code icon represent?
- It represents code, programming, or development. It's often used for actions or sections related to coding.
- How do I use the code icon in React?
- You can import it like this: import { Code } from '@phosphor-icons/react'. Then use it as a component: <Code />.
- What is the license for this icon?
- The Phosphor icon library, including the code icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Phosphor.