Skip to contentSkip to navigationSkip to topbar
Figma
Star

Inline Code

Version 4.1.1GithubStorybookPeer review pending

An inline code component visually distinguishes pieces of texts as fragments of code.

Installation

Installation page anchor
yarn add @twilio-paste/inline-code - or - yarn add @twilio-paste/core
import {InlineCode} from '@twilio-paste/inline-code';

const ExampleInlineCode = () => <InlineCode>console.log(mySustainabilityGoals)</InlineCode>;

InlineCode

InlineCode page anchor

element

Overrides the default element name to apply unique styles with the Customization Provider.

Type
string
Default
INLINE_CODE

variant

Only the "default" variant should be used as the "minimal" variant is deprecated.

Type
InlineCodeVariants