npm.io
11.7.3 • Published 1 month ago

@instructure/ui-truncate-text

Licence
MIT
Version
11.7.3
Deps
10
Size
414 kB
Vulns
0
Weekly
0
Stars
478

ui-truncate-text

npm MIT License Code of Conduct

A TruncateText component made by Instructure Inc.

Components

The ui-truncate-text package contains the following:

Installation
npm install @instructure/ui-truncate-text
Usage
import React from 'react'
import { TruncateText } from '@instructure/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>
  )
}