Skip to content

Creating Stories

Creating a Story

Stories are ModuleScripts that ends with .story in their name. These modules will tell
UI Labs how to render your stories.

storyname

Story modules should return the story you want to render. We're gonna learn how stories are written in the next section.

lua
local story = ...

return story
local story = ...

return story
ts
const story = ...

export = story
const story = ...

export = story

Finding Stories

Once you have created your story, it will appear in UI Labs story explorer.

storyinexplorer

Unknown Stories

Any story that hasnt been assigned to a Storybook will be inside of Unknown Stories
You can use this story right now, but it's recommended to eventually group it in a Storybook.