New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-clampio

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-clampio

React component for clamping lines. It adds ellipsis if text exceeds the defined max lines value

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

react-clampio

React component for clamping lines. It adds ellipsis if text exceeds the defined max lines value

Getting started

Install package using yarn or npm

$ yarn add react-clampio
$ npm install react-clampio --save

Pass to the component text that should be truncated:

import Clampio from 'react-clampio';

...

const longText = 'Lorem ipsum ...';
<Clampio
  text={longText}
  lines={3}
/>

Props

NameTypeRequiredDescription
textstringtrueText to truncate
linesnumberfalseMaximum lines (default 2)
ellipsisstringfasleSymbol at the end of truncated text (default ...)
classNamestringfalseCustom classname

Keywords

react

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts