@instructure/ui-truncate-text
TypeScript icon, indicating that this package has built-in type declarations

9.10.0 • Public • Published

category: packages

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

---
example: false
---
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>
  )
}

/@instructure/ui-truncate-text/

    Package Sidebar

    Install

    npm i @instructure/ui-truncate-text

    Weekly Downloads

    6,537

    Version

    9.10.0

    License

    MIT

    Unpacked Size

    273 kB

    Total Files

    53

    Last publish

    Collaborators

    • dmz985
    • aaronshaf
    • zsotllengyelinst
    • jozsefg-instructure
    • bpjatacsuk
    • ajmal-esa
    • razorsh4rk
    • david.wenzlick.inst
    • robinkuss64
    • ardena
    • jcflow
    • jguardadom
    • jdewar
    • xcudder
    • ericsaupe
    • joyenjoyer
    • omarpr
    • cguanzon-inst
    • sarahgerard
    • jacksonhowe
    • jakeoeding
    • camray
    • cjs118
    • matyas.szabo
    • herrtopi
    • angela.gomba
    • kyler-instructure
    • instuici
    • eschiebel
    • maths22
    • jcrystal
    • itadmins
    • quizzesuici
    • instructure-toolsmiths-service-user
    • aogata-inst
    • instout