line-clamp
Utilities for clamping a paragraph to a fixed maximum number of lines with trailing ellipsis.
ISS preview

Examples
Section titled “Examples”use iced::widget::text;use iss::{tw, TwExt};
let snippet = text(description).tw(tw!("text-sm text-zinc-400 line-clamp-2"));use iss::typed::*;
let style = IssStyle::new().text_sm().line_clamp(2);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
line-clamp-1 .. line-clamp-6 |
Clamp to 1 .. 6 visible lines; |
.line_clamp(2) |
line-clamp-<n> / line-clamp-[8] |
Clamp to arbitrary line count; |
.line_clamp(8) |
line-clamp-none |
Remove line clamping; |
.line_clamp_none() |
Behavior Notes
Section titled “Behavior Notes”- Truncates multi-line text with an ellipsis on the final line; clear at wider breakpoints with
line-clamp-2 md:line-clamp-none.