@mui/lab
Version:
Laboratory for new MUI modules.
46 lines (42 loc) • 1.36 kB
TypeScript
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { Theme } from '@mui/material/styles';
import { InternalStandardProps as StandardProps } from '@mui/material';
import { TimelineDotClasses } from './timelineDotClasses';
export interface TimelineDotPropsVariantOverrides {}
export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>> {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TimelineDotClasses>;
/**
* The dot can have a different colors.
* @default 'grey'
*/
color?: 'inherit' | 'grey' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The dot can appear filled or outlined.
* @default 'filled'
*/
variant?: OverridableStringUnion<'filled' | 'outlined', TimelineDotPropsVariantOverrides>;
}
/**
*
* Demos:
*
* - [Timeline](https://mui.com/material-ui/react-timeline/)
*
* API:
*
* - [TimelineDot API](https://mui.com/material-ui/api/timeline-dot/)
*/
export default function TimelineDot(props: TimelineDotProps): JSX.Element;