{# @description Wraps a run of panels so each one stops at the top of the screen and the next slides up over it. #} {# @prop top:number | default:"0" | description:"How far below the top of the screen a panel stops, in rem. The height of a fixed navbar, usually." #} {# @prop step:number | default:"0" | description:"How much lower each panel stops than the one before, in rem, so the edges of the covered ones stay showing like a deck of cards" #} {# @prop class:text | description:"Extra classes on the wrapper. A gap between panels goes here: space-y-6." #} {# @slot The panels — Each direct child is one panel. Give each a solid surface, or the one underneath shows through. #} {% comment %} Plain `position: sticky`. An `overflow-hidden` on anything between a panel and the page stops it sticking (docs/adr/0006-reveals-follow-the-scroll-position.md). {% endcomment %}
{{ slot }}