ScrollyStep
Loading example…
One block of the narrative. Marked aria-current="step" and data-active while it is the active one.
Import
Section titled “Import”import { ScrollyStep } from "@jcsoftdev/ui/containers";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/scrolly.
export const Default: Story = { render: (args) => ( <div style={{ padding: 16 }}> <Narrative side={args.graphicSide} /> </div> ),};Source of the Storybook story.
| Prop | Type | Default | Description |
|---|---|---|---|
children * |
ReactNode |
||
minHeight |
string |
"70svh" |
Minimum height of the step, any CSS length; a tall step gives the reader time with the graphic. |
className |
string |
* marks a required prop.
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/containers/scrolly/scrolly.tsx