Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 868 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 868 Bytes

react-text-overscroll

React component to reveal text hidden by overflow:hidden

NPM JavaScript Style Guide

Demo

https://astanciu.github.io/react-text-overscroll

Install

npm install --save react-text-overscroll

Usage

import React, { Component } from 'react'

import MyComponent from 'react-text-overscroll'

class Example extends Component {
  render () {
    return (
      <div style={{ width: '150px' }}>
        <OverScroll>Long text that doesn't fit parent width</OverScroll>
      </div>
    )
  }
}

License

MIT © astanciu