InlineCode

The inline code allows you to emulate `inline-code` (inline-code) in an Astro component.

View the official docs here

The InlineCode component allows you to use the Marked frontmatter formatter to format strings as inline code.

Examples

Basic Example

This is an example of inline code: getStaticProps()

Astro file
---
import { InlineCode } from 'astro-bootstrap';
---
<p>This is an example of inline code: <InlineCode code="getStaticProps()" /></p>

API

InlineCode

import { InlineCode } from 'astro-bootstrap'
NameTypeDefaultDescription
code required string The code which will be parsed as markdown inline code