99.10.0 • Published 4 years ago

@temporg/ui-truncate-text v99.10.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

category: packages

ui-truncate-text

npm  build-status  MIT License  Code of Conduct

A TruncateText component made by Rock Content

Components

The ui-truncate-text package contains the following:

Installation

yarn add @temporg/ui-truncate-text

Usage

---
example: false
---
import React from 'react'
import { TruncateText } from '@temporg/ui-truncate-text'

const MyTruncateText = () => {
  return (
    <TruncateText
      position="middle"
      truncate="word"
    >
      <span>This line of text should be truncated from the middle of the string <strong>instead of the end.</strong></span>
    </TruncateText>
  )
}