📄 lucide/icons/code

File: code.md | Updated: 11/15/2025

Source: https://lucide.dev/icons/code

Skip to content

Return to top

code

source • programming • html • xml

text development

Created:

v0.0.0

Last changed:

v0.511.0

Contributors:

colebemis

VanillaReactVueSveltePreactSolidAngularIcon font

js

import { createIcons, icons } from 'lucide';

createIcons({ icons });

document.body.append('<i data-lucide="code"></i>');  

tsx

import { Code } from 'lucide-react';

const App = () => {
  return (
    <Code />
  );
};

export default App;

vue

<script setup>
import { Code } from 'lucide-vue-next';
</script>

<template>
  <Code />
</template>

svelte

<script>
import { Code } from 'lucide-svelte';
</script>

<Code />

tsx

import { Code } from 'lucide-preact';

const App = () => {
  return (
    <Code />
  );
};

export default App;

tsx

import { Code } from 'lucide-solid';

const App = () => {
  return (
    <Code />
  );
};

export default App;

tsx

// app.module.ts
import { LucideAngularModule, Code } from 'lucide-angular';

@NgModule({
  imports: [\
    LucideAngularModule.pick({ Code })\
  ],
})

// app.component.html
<lucide-icon name="code"></lucide-icon>

html

<div class="icon-code"></div>

See this icon in action

CodeCancel

Bug

Feature

Code

Documents Readme Code 12

112

8

11

2

More icons like this

code-xml

file-code-corner

file-code

folder-code

message-circle-code

message-square-code

qr-code

scan-qr-code

search-code

square-code

square-dashed-bottom-code