import { ReadMore } from "@wfp/react"; () => { return ( <ReadMore defaultValue="false" fade helperText="Optional helper text." labelA="Off" labelB="On" labelText="Toggle label" maxHeight={50} /> ); };
string
Specify an optional className to be applied to the wrapper node
boolean
The content of the collapsed content (optional)
React.ReactNode
A custom link for collapsing
Custom text for collapsing
Disable the scroll into view on expanding
A custom link for expanding
Custom text for expanding
Enables the fade effect when the content is collapsed (optional) when enabled collapsed will be ignored
number
The maximum height when the content is collapsed (optional)