Spoiler
A native details disclosure that clamps content to a fixed line count until expanded.
beta
API
import Spoiler from '@tcpsystems/ui/foundation/Spoiler';| Prop | Type | Default |
|---|---|---|
label? | string | 'Show more' |
lessLabel? | string | 'Show less' |
lines? | 3 | 5 | 8 | 3 |
| Snippet |
|---|
children |
| Hook | Kind |
|---|---|
.tcp-spoiler | Root class |
data-lines | Data attribute |