UNPKG

@material-ui/lab

Version:

Material-UI Lab - Incubator for Material-UI React components.

43 lines (39 loc) 1.36 kB
import * as React from 'react'; import { InternalStandardProps as StandardProps } from '@material-ui/core'; export interface TimelineItemProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> { /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: { /** Styles applied to the root element. */ root?: string; /** Styles applied to the root element if `align="left"`. */ alignLeft?: string; /** Styles applied to the root element if `align="right"`. */ alignRight?: string; /** Styles applied to the root element if `align="alternate"`. */ alignAlternate?: string; /** Styles applied to the root element if no there isn't TimelineOppositeContent provided. */ missingOppositeContent?: string; /** Styles applied to the timeline content node. */ content?: string; /** Styles applied to the timeline opposite content node. */ oppositeContent?: string; }; } export type TimelineItemClassKey = keyof NonNullable<TimelineItemProps['classes']>; /** * * Demos: * * - [Timeline](https://material-ui.com/components/timeline/) * * API: * * - [TimelineItem API](https://material-ui.com/api/timeline-item/) */ export default function TimelineItem(props: TimelineItemProps): JSX.Element;