Skip to content

pantoken-root / renderers/web-components/src / truncate

변수: truncate ​

const truncate: ElementDefinition

알파

<instui-truncate> — clamps slotted text to a fixed number of lines with an ellipsis. lines accepts a positive integer or auto. A number sets the --lines custom property directly. auto computes a line count from the host's available height and applies that as --lines. Omit lines for single-line truncation.

예제 ​

html
<instui-truncate lines="2">두 줄로 제한될 긴 설명…</instui-truncate>