MDX Component Tests

Last updated
10th May 2025
Read time
5 mins

Cover image

This page demonstrates various MDX components and styling options available in the Sway project.

Headings

Heading 1 (H1)

Heading 2 (H2)

Heading 3 (H3)

Paragraphs

This is a standard paragraph with bold text, italic text, and inline code. You can also add links to your content.

Lists

Unordered Lists

Ordered Lists

  1. First item
  2. Second item
  3. Third item
    1. Nested numbered item
    2. Another nested numbered item
  4. Fourth item

Tables

Standard Markdown Table (4px padding)

| Issue | Solution | |-------|----------| | Customers still confused about delivery methods | Add more detailed descriptions and visual explanations | | Cart weight calculation issues | Ensure all products have accurate weight information | | Overlapping weight tiers causing conflicts | Set clear priority levels and mutually exclusive weight ranges | | Carrier inconsistency with white glove service | Partner with specialized heavy item delivery services |

Styled Table with Rounded Corners

FeatureDescriptionStatus
Rounded CornersTables with rounded corners and bordersImplemented
Custom ColorsCustomizable header and row background colorsImplemented
Alternating RowsZebra-striped tables with alternating row colorsImplemented
Cell Padding4px padding in all table cellsImplemented

Table with Custom Cell Padding

Padding SizeDescriptionTailwind Class
2px PaddingCompact cell padding (this table)p-2
4px PaddingDefault cell paddingp-4
6px PaddingLarger cell paddingp-6
Custom PaddingDifferent horizontal and vertical paddingpx-4 py-2

Table with Large Cell Padding

FeatureDescription
Large PaddingThis table uses 6px padding (p-6) for all cells
Comfortable ReadingMore space makes content easier to read for longer text

Colored Status Table

ProjectStatusCompletion
MDX ComponentsComplete100%
Table StylingComplete100%
List ComponentsIn Progress75%
Image PlaceholdersTesting90%

Images

Standard Image Placeholder

This is a placeholder for an image that demonstrates the ImagePlaceholder component

Image with Context

Screenshot showing the MDX editor with syntax highlighting

Conclusion

This page demonstrates the various MDX components and styling options available in the Sway project. Use this as a reference when creating content for your guides and help documentation.

Ask in our community
Question not answered? Ask us and other customers in the Sway customer community.
Go to community
Contact support
Message our support team privately to discuss anything specific to your organization
Contact support