Version: 3.0.0-next.40

Code

Code is a component used to display inline code. It is composed from the Box component with a mono font family (Courier on ios) for displaying code.

Import#

import { Code } from 'native-base';

Examples#

Basic#

Colors#

Props#

Code implements Box, so all the Box Props can be passed to it.

NameTypeDescriptionDefault
childrenReactNodeThe content of the code.-
colorSchemestringThe color of the radio when it's checked. This should be one of the color keys in the theme (e.g."green", "red").-