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.
Hello world
You can change the color scheme of the component by passing the colorScheme
prop.
console.log(welcome)
var chakra = 'awesome!'
npm install chakra
Name | Type | Description | Default |
---|---|---|---|
colorScheme | string | - | |
css | Interpolation<{}> | The emotion's css style object | - |
orientation | "horizontal" | "vertical" | - | |
size | string | - | |
styleConfig | Record<string, any> | - | |
variant | string | - |