UI Components

MDX Components Documentation

Tweet Component

The Tweet component is used to embed a tweet within your content. It accepts the following props:

PropTypeDescription
textstringThe content of the tweet.
urlstringThe URL of the tweet.
authorobjectInformation about the tweet's author.

Example Usage

<Tweet
  text="Excited about the new features in our latest release! 🚀 #ProductUpdate"
  url="https://twitter.com/exampleuser/status/123456789"
  author={{
    name: 'John Doe',
    handle: 'exampleuser',
    avatar: '/path/to/avatar.jpg',
  }}
/>

Video Component

The Video component is used to embed a local video within your content. It accepts the following props:

PropTypeDescription
urlstringThe URL of the video file.
titlestring (opiotnal)The title of the video.

Example Usage

<Video url="/path/to/video.mp4" title="Introduction to Our Product" />

YouTube Component

The YouTube component allows you to embed YouTube videos in your content. It accepts the following prop:

PropTypeDescription
videoIdstringThe YouTube video ID.

Example Usage

<YouTube videoId="your-youtube-video-id" />

MuxVideo Component

The MuxVideo component is designed to embed Mux-hosted videos. It accepts the following prop:

PropTypeDescription
playbackIdstringThe Mux video playback ID.

Example Usage

<MuxVideo playbackId="your-mux-video-playback-id" />

Testimonial Component

The Testimonial component is used to display customer testimonials. It accepts the following prop:

PropTypeDescription
childrennodeThe content of the testimonial.
authorobjectInformation about the testimonial's author.
author.namestringThe name of the testimonial's author.
author.imagestring (optional)The image URL of the testimonial's author.

Example Usage

<Testimonial
  author={{
    name: 'Jane Doe',
    image: '/path/to/author-image.jpg',
  }}
>
  "This product changed my life! Highly recommended."
</Testimonial>
Previous
Module Collection