Data Display
Spoiler
client21.25 kB
@stellaria/nebula-webSpoilerPropsPreview
Props
8| Prop | Type | Default |
|---|---|---|
children required | ReactNode | — |
className | string | — |
defaultExpanded | boolean | false |
expanded | boolean | — |
hideLabel | ReactNode | "Show less" |
maxHeight | number | 100 |
onExpandedChange | ((expanded: boolean) => void) | — |
showLabel | ReactNode | "Show more" |
Slot props
2Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
contentProps The clipped block. Its `max-height` is written AFTER the slot while it is closed, because that is what does the clipping; everything else can be adjusted. | BoxSlotProps | — |
toggleProps The link that opens and closes. Only rendered when the content overflows `maxHeight`. | AnchorSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 128