LogoLogo
GitHub repository
GitHub repository
    Documentation
  • Overview
  • Getting Started
  • Guides


  • Hooks

  • Components


    • AsyncButton
    • AsyncIconButton
    • CodeBlock
    • CopyButton
    • Enumeration
    • ExampleCard
    • Icon
    • InlineCode
    • Logo
    • PageLoadingIndicator
    • PageOverview
    • Paragraph
    • QuoteBlock
    • SmartImage
    • SmartLink
    • StyleLink

InlineCode

Formats an inline piece of text as monospace and lets the user copy it by clicking (as long as it has no clickable parent).

Props

The same as Joy UI's Typography component.

Examples

Code within a paragraph

This is a paragraph with some monospace code that you can click on.

1<Paragraph body>
2 This is a paragraph. It also contains <InlineCode>some inline code</InlineCode>, that you can click on.
3</Paragraph>
1<Paragraph body>
2 This is a paragraph. It also contains <InlineCode>some inline code</InlineCode>, that you can click on.
3</Paragraph>

LogoLogo