Skip to main content

ExpandableText

    The ExpandableText component provides expand and collapse functionality for inline text.

    Import​

    import { ExpandableText } from '@dynatrace/strato-components/content';

    Demo​

    Expand text by default​

    Use the defaultExpanded prop to initially expand the text.

    Customize button label​

    Use the expandLabel and collapseLabel props to set a custom label for the expand and collapse buttons respectively. For consistency with other apps in Dynatrace, use the default "Show more" and "Show less" labels.

    Still have questions?
    Find answers in the Dynatrace Community