@skilld/line-clamp
v1.0.3
Published
Global trimlines functionality.
Downloads
3
Readme
Trim lines component
Example:
JS code
import lineClamp from 'line-clamp';
lineClamp(
{
testTrim: {
selector: '.CSS-SELECTOR',
trim: 1,
forceJs: false, // In some cases display: webkit-box break layout.
}
}
);
CSS code
@import "line-clamp/line-clamp";