---
title: Code
description: Used to display inline code
links:
source: components/code
storybook: typography-code--basic
recipe: code
---
## Usage
```js
import { Code } from "@chakra-ui/react"
```
```jsx
Hello world
```
## Examples
### Sizes
Use the `size` prop to change the size of the code component.
### Variants
Use the `variant` prop to change the appearance of the code component.
### Colors
Use the `colorPalette` prop to change the color scheme of the component.
## Props