Nextjs Core Timeline

-
Pro Component


We’ve created this component especially for Timeline Page.

Style

You will find the styles for this component in assets/jss/nextjs-material-dashboard-pro/components/timelineStyle.js..

Example

  • card_travel
    Some Title

    Wifey made the best Father's Day meal ever. So thankful so happy so blessed. Thank you for making my family We just had fun with the “future” theme !!! It was a fun night all together ... The always rude Kanye Show at 2am Sold Out Famous viewing @ Figueroa and 12th in downtown.

    11 hours ago via Twitter

import React from 'react';
// @material-ui/icons
import CardTravel from "@material-ui/icons/CardTravel";
import Build from "@material-ui/icons/Build";
// core components
import TimelineComponent from "components/Timeline/Timeline.js";
import CustomDropdown from "components/CustomDropdown/CustomDropdown.js";

export default function Timeline(){
  const buttonProps = {
    round: true,
    style: { marginBottom: "0" }
  };
  return (
    <TimelineComponent stories={[
        {   // First story
          inverted: true,
          badgeColor: "danger",
          badgeIcon: CardTravel,
          title: "Some Title",
          titleColor: "danger",
          body: (
            <p>Wifey made the best Father's Day meal ever. So thankful so happy so blessed. Thank you for making my family We just had fun with the “future” theme !!!   It was a fun night all together ... The always rude Kanye Show at 2am Sold Out Famous viewing @ Figueroa and 12th in downtown.</p>
          ),
          footerTitle: "11 hours ago via Twitter",
          footer: (
            <CustomDropdown
              buttonColor="info"
              buttonIcon={Build}
              buttonProps={buttonProps}
              dropdownList={[
                "Action",
                "Another action",
                "Something else here",
                { divider: true },
                "Separated link"
              ]}
            />
          )
        }
      ]}
    />
  );
}

Props

Name Type Default Description
stories Array of Objects undefined With this prop the Timeline component will be populated.
stories[n].inverted Boolean false This will make the story inverted.
stories[n].badgeIcon Function null Add an icon to the story.
stories[n].badgeColor String undefined Add a color to the icon.
stories[n].title String/Node null The title of the story.
stories[n].titleColor String undefined Color of the title.
stories[n].body String/Node undefined Body text of the story.
stories[n].footerTitle String/Node null Text for the footer of the story.
stories[n].footer Node undefined Node to add as a footer.