1.2.1 • Published 2 months ago

react-abbr v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

React-abbr

A component for ReactJS. Used for omitting the middle fragment in the single-line text. It is also adaptive when dragging the window screen.

version downloads license

NPM

Description

In the space where the display width is limited, it can show the head and tail of a string of characters. Through this way, it will be easier to infer the meaning of the string.

The component is exactly what you need !

Install

NPM or YARN

npm install react-abbr 

or

yarn add react-abbr

Usage

props

PropTypeRequiredDescription
textStringThis is the showing string

import in ReactComponent

import React from 'react'
import ReactAbbr from 'react-abbr'
import 'react-abbr/dist/reactAbbr.css'

<div style={{ width: '170px' }}>
  <ReactAbbr text={'hello, world! This is ReactAbbr Component.'} />
</div>

<!-- Result -->
hello, wo... omponent.
1.2.0

2 months ago

1.2.1

2 months ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago