@mui/lab#TimelineContent TypeScript Examples

The following examples show how to use @mui/lab#TimelineContent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TimelineItem.tsx    From frontend with MIT License 6 votes vote down vote up
export default function TimelineItem({ children, title, lastItem, Icon }: TimelineItemProps) {
  return (
    <StyledTimelineItemMaterial className={classes.timelineItem}>
      <TimelineSeparator>
        <Icon className={classes.icon} color="primary" />
        <TimelineConnector className={classes.connector} />
        {lastItem ? <ArrowForwardIosIcon className={classes.arrowIcon} color="primary" /> : ''}
      </TimelineSeparator>
      <TimelineContent classes={{ root: classes.contentContainer }}>
        <Card variant="outlined" className={classes.contentPaper}>
          {title && <CardHeader titleTypographyProps={{ color: 'textSecondary' }} title={title} />}
          <CardContent className={classes.content}>
            <Typography variant="body2" component="div">
              {children}
            </Typography>
          </CardContent>
        </Card>
      </TimelineContent>
    </StyledTimelineItemMaterial>
  )
}