Supported components

The overview of all available components in Portal template and guides how to use them.

Text

The Portal template offers a collection of pre-styled Markdown typography elements to help you create a well-structured document.

StyleMarkdown syntaxAlternative syntax

Heading 1

# Heading 1
Heading 1
=========

Heading 2

## Heading 2Heading 2
---------

Heading 3

### Heading 3

Heading 4

#### Heading 4
Heading 5
##### Heading 5
Heading 6
###### Heading 6
Plain textPlain text
Bold text**Bold text**__Bold text__
Italic text*Italic text*_Italic text_
Inline code text`Inline code`
Text link[Text link](url)
Compatibility

List

Lists are a great way to organize information in a structured manner. They can be used to present a series of items, steps, or bullet points in a clear and concise way.

Numbered List

  1. Cook pasta
  2. Add tomatoes
  3. Toss pasta with sauce

Bulleted List

  • Classic spaghetti with tomato basil
  • Penne with creamy pesto
  • Fusilli with garlic and olive oil

Callout

Callout elements are meant to draw attention to important information or provide additional context to the user.

Note
Info
Tip
Warning
Danger

Code block

You can add code blocks using a jazzed-up markdown syntax like this:

1
2
3

You can also use React Syntax for code blocks like this:

1
2
3

Code block without a title will look like this:

1

Image

Here's an image with a simple markdown syntax and an image from the /public/img folder. This will be converted to a next/image with all its benefits.

Abstract art

Images with external URL

Here's an image with a simple markdown syntax, but an image from the web. Since we don't know the width of the image, we can't use next/image, this will be converted into a simple img tag.

Photo of Osaka from Wikipedia

HTML image tag

You can also use the Image JSX tag to add images

Image size

This way you can adjust the width of the image

Abstract art

Alignment and caption

Wrap your image with Frame component to control the alignment and add a caption. In HTML it's rendered as a figure tag.

Abstract art
Left aligned image
Abstract art
Center aligned image
Abstract art
Right aligned image

SVG

Use svg images as you would use normal images.

Abstract art

Inline image

If you use the Image tag or the markdown syntax for images outside the frame -- you're adding an inline image.

Here's an example Abstract art of an image embedded within a paragraph.

Here's an example Alt text of an image embedded within a paragraph.

Developer comment

Frame

When you need to make an image as a block element or control its alignment. Use the Frame component for that. In HTML it's rendered as a figure tag.

Caption text goes here

The frame component supports any content inside it, not just images. For example, you can wrap tables or your own React elements. caption prop is a string, and align prop allows three possible values: 'left', 'center', and 'right'.

Table

Tables can be represented with the GFM syntax

RocketHeightPayload to LEOStages
SpaceX Starship120 m150 t2
NASA SLS Block 198 m95 t2
Blue Origin New Glenn98 m45 t2

Center and add a caption on a table

You can also wrap a table inside a frame to align it and add a caption.

RocketHeightPayload to LEOStages
SpaceX Starship120 m150 t2
NASA SLS Block 198 m95 t2
Blue Origin New Glenn98 m45 t2
Table inside a frame with a caption

Here's how to do it.