1.0.8 • Published 4 years ago

react-overflows-ellipsis v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

react-overflows-ellipsis

 some environment, css text-overflow: ellipsis dot not work, or not satisfied
 maybe you can try this lirbray
 do text-overflow: ellipsis in js
 this lirbray is base in jquery

usage

import ReactEllipsis from 'react-overflows-ellipsis';

<ReactEllipsis className="demo">you word</ReactEllipsis>

.demo{
  font-size: 16px;
	color: #CF5000;
	width: 180px;
}

Props

className: string

  • default: undefined

str: The string to append to the content before it is clipped. Defaults to the ellipsis character "". May also contain HTML, but the string itself is not subject to being clipped

  • default: ...
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago