Taiga UI 5.0 is out!

LineClamp KIT

Examples API GitHub

On this page

Component cuts overflown text with "..." and shows it by hover

Styles change

Daenerys of the House Targaryen, the First of Her Name, The Unburnt, Queen of the Andals, the Rhoynar and the First Men, Queen of Meereen, Khaleesi of the Great Grass Sea, Protector of the Realm, Lady Regent of the Seven Kingdoms, Breaker of Chains and Mother of Dragons
Use white-space: nowrap to expand to the right
Jorah Mormont of House Mormont, Lord of Bear Island
DRAFT Davis, Julia
Loading...

Expanding

Daenerys of the House Targaryen, the First of Her Name, The Unburnt, Queen of the Andals, the Rhoynar and the First Men, Queen of Meereen, Khaleesi of the Great Grass Sea, Protector of the Realm, Lady Regent of the Seven Kingdoms, Breaker of Chains and Mother of Dragons

Resize parent container

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Clamp inside dropdown

Dropdown —

Custom content workaround

1. Display only the first line, in a popup display remaining lines.

extremely.long.information@example.com

User ID: 5a006cb3-2b69-4b23

First Name: John

Last Name: Doe

2. Do not use `tui-line-clamp`, use `text-overflow: ellipsis` instead.

Virtual content

Custom font-size and line-height

Daenerys of the House Targaryen, the First of Her Name, The Unburnt, Queen of the Andals, the Rhoynar and the First Men, Queen of Meereen, Khaleesi