Skip to content

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead β†’
Path:
/vnext/docs/components/general/ellipsis.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

Ellipsis ​

Ellipsis ​

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

Showcases ​

Default ​

Props ​

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

Slots ​

NamePurpose
defaultThe content that may be truncated with ellipsis

Multi Line Ellipsis ​

ts
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 multi-line ellipsis component.

Slots ​

NamePurpose
defaultThe content that may be truncated with ellipsis

Accessibility ​

As the ellipsis component does not hide the actual 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.

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead β†’
Path:
/vnext/docs/components/general/ellipsis.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

Last updated: