CaReadMore
Used to hide part of text and display a "read more"-toggle
SASS-path: ./styles/components/molecules/ca-read-more.scss
Props
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| maxHeight | Maximum height of text to show before 'read more'-function to kick in | Number | false | 60 |
Slots
| Name | Description | Default Slot Content |
|---|---|---|
| default | Text content | - |
Methods
| Method | Description | Parameters |
|---|---|---|
| setHeights | Set heights | - |
| toggleText | Toggle read more/read less | - |