UNPKG

react-component-truncated

Version:

Purely stylistic React.JS component to truncate long strings, like crypto addresses or tokens.

7 lines (6 loc) 250 B
import { HTMLAttributes } from 'react'; declare type IProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & { children: string; }; declare function Truncated({ children, className, ...props }: IProps): JSX.Element; export default Truncated;