Components

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

import { Code } from '@outfitio/outkit';

Usage

Colors

You can change the color scheme of the component by passing the variantColor prop.

Props

NameTypeDefaultDescription
variantColorstringThe color scheme to use for the code.
childrenReact.ReactNodeThe content of the code