Truncate

readyNot reviewed for a11y
This page may be removed. Primer plans to move all Rails component documentation to Lookbook.

Description

Use Truncate to shorten overflowing text with an ellipsis.

Arguments

NameRequiredDescription
system_arguments

Slots

items

Text slot used for the truncated text.

NameRequiredDescription
priority
Boolean

if true, the text will be given priority

expandable
Boolean

if true, the text will expand on hover or focus

max_width
Integer

if provided, the text will be truncated at a maximum width

system_arguments

Truncate::TruncateText

This component is part of Primer::Beta::Truncate and should not be used as a standalone component.