Skip to content

Is it possible to add title property when text is clamped #66

Description

@luiscoms

My workaround was to wrap is with a div with title, but it would be great to have an option to this.

import LinesEllipsis from 'react-lines-ellipsis'

<div title="long long text">
  <LinesEllipsis
    text='long long text'
    maxLine='3'
    ellipsis='...'
    trimRight
    basedOn='letters'
  />
</div>

Like this:

import LinesEllipsis from 'react-lines-ellipsis'

<LinesEllipsis
  text='long long text'
  maxLine='3'
  ellipsis='...'
  trimRight
  basedOn='letters'
  insertTitle
/>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions