Code

Code is a component used to display inline code. It is composed from the Box component with a font family of `mono` for displaying code.

    Source@chakra-ui/layout

Props#

colorScheme

Type
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
Default
"gray"

size

Description

Sizes for Code are not implemented in the default theme. You can extend the theme to implement them.

Type
string

variant

Type
"solid" | "subtle" | "outline"
Default
"subtle"
Edit this page on GitHub

Proudly made inNigeria by Segun Adebayo

Deployed by Vercel