UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

18 lines (10 loc) 430 B
--- id: Expandable section section: components --- ## Demos ### Expandable text with character truncation You can truncate long sections of text and add a "Show more" link that allows users to expand and view the full text content. To specify the number of characters shown prior to truncation, use a `<Truncate>` component and pass a `maxWidth` to the `style` attribute. ```ts file='./examples/ExpandableTextDemo.tsx' ```