UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

81 lines (75 loc) 2.14 kB
import * as React from 'react'; import { OverridableStringUnion } from '@mui/types'; import { SxProps } from '@mui/system'; import { Theme } from '..'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; import { DividerClasses } from './dividerClasses'; export interface DividerPropsVariantOverrides {} export interface DividerTypeMap<P = {}, D extends React.ElementType = 'hr'> { props: P & { /** * Absolutely position the element. * @default false */ absolute?: boolean; /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<DividerClasses>; /** * If `true`, a vertical divider will have the correct height when used in flex container. * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.) * @default false */ flexItem?: boolean; /** * If `true`, the divider will have a lighter color. * @default false */ light?: boolean; /** * The component orientation. * @default 'horizontal' */ orientation?: 'horizontal' | 'vertical'; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; /** * The text alignment. * @default 'center' */ textAlign?: 'center' | 'right' | 'left'; /** * The variant to use. * @default 'fullWidth' */ variant?: OverridableStringUnion< 'fullWidth' | 'inset' | 'middle', DividerPropsVariantOverrides >; }; defaultComponent: D; } /** * * Demos: * * - [Dividers](https://mui.com/components/dividers/) * - [Lists](https://mui.com/components/lists/) * * API: * * - [Divider API](https://mui.com/api/divider/) */ declare const Divider: OverridableComponent<DividerTypeMap>; export type DividerProps< D extends React.ElementType = DividerTypeMap['defaultComponent'], P = {}, > = OverrideProps<DividerTypeMap<P, D>, D>; export default Divider;