Skip to content

Ellipsis ​

javascript
import { XerEllipsis } from "@xerius/codey-components";

Showcases ​

Default ​

Props ​

NameTypeDefaultRequiredDescription
contentClassStringfalseThe CSS class(es) of the content
dataAutomationIdStringellipsisfalseSets the data automation id for the alert component.

Multi Line Ellipsis ​

javascript
import { XerMultiLineEllipsis } from "@xerius/codey-components";

Showcases ​

Default ​

With Multiple Lines ​

Props ​

NameTypeDefaultRequiredDescription
linesNumber2falseThe number of lines to show before ellipsis
currentLanguageCodeStringnl-betrueThe current language code used to display the toggle text
contentClassStringfalseThe CSS class(es) of the content
dataAutomationIdStringmulti-line-ellipsisfalseSets the data automation id for the alert component.

Accessibility ​

As the ellipsis component does not hide the excual text from the DOM screen readers will always read the full text. This als means that the show more button does not need any aria attributes as the screen reader will read the full text.

More info about this topic can be found here.