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.
Import#
Usage#
Hello worldEditable Example
Colors#
You can change the color scheme of the component by passing the variantColor
prop.
console.log(welcome)var chakra = 'awesome!'npm install chakraEditable Example
Props#
| Name | Type | Default | Description |
|---|---|---|---|
variantColor | string | The color scheme to use for the code. | |
children | React.ReactNode | The content of the code |