Skip to content

Latest commit

 

History

History
88 lines (65 loc) · 1.79 KB

list-table.mdx

File metadata and controls

88 lines (65 loc) · 1.79 KB
title description icon
Lists and Tables
Display information in lists and tables
list

Lists

Ordered List

To create an ordered list, add line items with numbers followed by periods

  1. First item
  2. Second item
  3. Third item
  4. Fourth item
1. First item
2. Second item
3. Third item
4. Fourth item

Unordered List

To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items

  • First item
  • Second item
  • Third item
  • Fourth item
- First item
- Second item
- Third item
- Fourth item

Nested List

Add indents on list items to nest them

  • First item
  • Second item
    • Additional item
    • Additional item
  • Third item
- First item
- Second item
  - Additional item
  - Additional item
- Third item

Lists follow the official markdown syntax.

Tables

Property Description
Name Full name of user
Age Reported age
Joined Whether the user joined the community

Creating a table

The Table component follows the official markdown syntax.

To add a table, use three or more hyphens (---) to create each column's header, and use pipes (|) to separate each column. For compatibility, you should also add a pipe on either end of the row.

| Property | Description                           |
| -------- | ------------------------------------- |
| Name     | Full name of user                     |
| Age      | Reported age                          |
| Joined   | Whether the user joined the community |