Stories
Description
The Stories
component is designed to manage and render a list of stories within your application.
It leverages various hooks to access and manage context values related to the viewer, timer, stories, and pages.
The component conditionally renders its children based on these context values and handles story transitions.
It is also forward-ref compatible, allowing it to be used with refs.
Properties
Component
Prop | Type | Description |
---|---|---|
as | React.ElementType | Specifies the component type to render (by default, div ). |
...events | PaginationEvents | Optional callback events for component. |
...props | React.HTMLAttributes | Standard HTML attributes for an HTML element. |
Contexts Available
Usage
<Stories>
<Story>{...content}</Story>
<Story>{...content}</Story>
<Story>{...content}</Story>
{...stories}
</Stories>