A TruncateText component made by Instructure Inc.
npm install @instructure/ui-truncate-text[![npm][npm]][npm-url]
[![MIT License][license-badge]][license]
[![Code of Conduct][coc-badge]][coc]
A TruncateText component made by Instructure Inc.
The ui-truncate-text package contains the following:
``sh`
npm install @instructure/ui-truncate-text
`js
import React from 'react'
import { TruncateText } from '@instructure/ui-truncate-text'
const MyTruncateText = () => {
return (
This line of text should be truncated from the middle of the string{' '}
instead of the end.
)
}
``
[npm]: https://img.shields.io/npm/v/@instructure/ui-truncate-text.svg
[npm-url]: https://npmjs.com/package/@instructure/ui-truncate-text
[license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square
[license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE.md
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md