Skip to content

rTextReveal

The rTextReveal component is designed to initially display a condensed version of a longer text, offering a brief glimpse to the user. With an interactive toggle control, users can click to reveal the full text and collapse it back to its shortened version.

Props

NameTypeDefaultRequiredDescription
maxLinesnumber3Number of lines of text to show when not expanded

Slots

NameDescription
defaultText to render

Code snippet

Example usage:

vue
<template>
  <RTextReveal>
    Text to render.
  </RTextReveal>
</template>

Made with ♥️ by Riešenia