Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Truncate multi-lines text for all browsers base on react.js

License

NotificationsYou must be signed in to change notification settings

ShinyChang/React-Text-Truncate

Repository files navigation

Install

npm install react-text-truncate

Usage

importTextTruncatefrom'react-text-truncate';// recommendvarTextTruncate=require('react-text-truncate');// CommonJS or UMD

Markup

<TextTruncateline={1}element="span"truncateText="…"text="Lorem Ipsum is simply dummy text of the printing and typesetting industry."textTruncateChild={<ahref="#">Read on</a>}/>

Demo

FAQ

  1. Why TextTruncate not shown after display changed?

    You must trigger update manually.

  2. Will TextTruncate support IE10 or below?

    No! IE 10 and below are dead according toMicrosoft post.

About

Truncate multi-lines text for all browsers base on react.js

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors20


    [8]ページ先頭

    ©2009-2025 Movatter.jp