Skip to content

Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.

License

Notifications You must be signed in to change notification settings

remanufacturing/react-truncate

Repository files navigation

@re-dev/react-truncate

GitHub stars

React component for truncating multi-line spans and adding an ellipsis.

Why?

This is a Fork version from react-truncate . Since the original version has not been maintained for a long time, we plan to solve existing problems through this repository.

Usage

With npm(or yarn, or pnpm):

npm install @re-dev/react-truncate

In .jsx / .tsx or other files:

import { MiddleTruncate, Truncate, ShowMore } from '@re-dev/react-truncate'

Normally, you only need to use the MiddleTruncate or ShowMore component.

See: Basic Example

Documentation

New documentation coming soon, please refer to the legacy version for now.

See:

Release Notes

Please refer to CHANGELOG for details.

Development Plan

Here are some recent development plans.

If you have good ideas and suggestions, you can provide feedback through issue.

See: Projects on GitHub .

License

MIT License © 2023-PRESENT chengpeiquan

About

Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published