@temporg/ui-truncate-text

99.10.0 • Public • Published

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>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @temporg/ui-truncate-text

Weekly Downloads

4

Version

99.10.0

License

MIT

Unpacked Size

89.4 kB

Total Files

25

Last publish

Collaborators

  • npm