UNPKG

@xyo-network/react-shared

Version:

Common React library for all XYO projects that use React

21 lines 982 B
import type { BoxProps, TypographyProps, TypographyTypeMap } from '@mui/material'; import type { PropsWithChildren } from 'react'; import React from 'react'; export interface EllipsizeRootProps extends BoxProps { beforeLineHeight?: string | number; } export type TypographyWithComponentProps<D extends React.ElementType = TypographyTypeMap['defaultComponent'], P = {}> = TypographyProps<D, P> & { ellipsisPosition?: 'start' | 'end'; }; export interface EllipsizeBoxProps extends BoxProps { beforeLineHeight?: number | string; disableSharedRef?: boolean; ellipsisPosition?: 'start' | 'end'; innerWrapProps?: BoxProps; typographyProps?: TypographyWithComponentProps; } export declare const EllipsizeBox: { ({ ref, innerWrapProps, children, ellipsisPosition, disableSharedRef, typographyProps, ...props }: PropsWithChildren<EllipsizeBoxProps>): import("react/jsx-runtime").JSX.Element; displayName: string; }; //# sourceMappingURL=Ellipsize.d.ts.map