UNPKG

@blockscout/ui-toolkit

Version:

A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects

13 lines (12 loc) 649 B
import { default as React } from 'react'; import { ExcludeUndefined } from '../../../shared/types/utils'; import { SkeletonTextProps } from '../../chakra/skeleton'; import { TooltipProps } from '../../chakra/tooltip'; export interface TruncatedTextProps extends Omit<SkeletonTextProps, 'loading'> { text: string; loading?: boolean; tooltipContent?: string; tooltipPlacement?: ExcludeUndefined<TooltipProps['positioning']>['placement']; tooltipInteractive?: boolean; } export declare const TruncatedText: ({ text, tooltipPlacement, tooltipInteractive, tooltipContent, loading, ...rest }: TruncatedTextProps) => React.JSX.Element;