Components
← All components

Read More

stimeo--read-more

Folds long text to a few lines with a way to open it, and hides the button when it already fits.

  • Core
  • Disclosure

Folds long text to a few lines with a read-more control. How many lines is your CSS. What this adds is measuring whether the text really overflows: when it does not, the control is not shown, so nobody presses a button that changes nothing. The measurement runs again when the width changes. The full text stays in the page while folded, so a screen reader always has all of it.

running

Stimeo is a headless Stimulus UI framework for Ruby on Rails. It ships behavior only — accessible, attribute-driven components that own roles, keyboard interaction, and live-region feedback, while leaving every pixel of styling to you. There is no bundled CSS and no runtime dependency: you bring the markup and the looks, Stimeo brings the correct, tested accessibility semantics underneath.

Keyboard

KeyAction
Enter / Space Toggle between the clamped and full text (native button).