Code

Code components display code snippets inline.
Access to Fuegokit npm packages, source code repositories, and some content is limited to Appfire staff. Log in with Slack to continue.

Code highlights short strings of code snippets inline with body text.

Import

import { Code } from "@fuegokit/react";

Usage

Props

Code

NameTypeDefaultDescription
children
React.ReactNode
Content to be rendered in the inline code block.
sx
SystemStyleObject
Style overrides to apply to the component. See also the sx prop.

Accessibility

When overriding default styles, remember to ensure that code is readable for all users.

See also