Skip to content

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

@luiscoms

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
/>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions