Skip to main content
The UI kit is built inside the Flexprice dashboard repository, flexprice/flexprice-front, which carries a Storybook. Today that Storybook covers dashboard internals; the kit’s own components do not have stories yet. Until they do, the component pages in these docs are the interactive gallery.

Component previews in the docs

Every page under Components embeds the real component with realistic props, next to the code that produces it, with a light and dark toggle: The props behind each preview are a valid fixture. Copy them into a test or a static JSON file to render a component before your data pipeline exists.

Run the repository Storybook

1

Clone the dashboard repository

2

Start Storybook

It serves on http://localhost:6006. Stories are discovered from src/**/*.stories.tsx.
3

Build the kit

This emits the installable package into packages/flexprice-ui/dist from the umbrella entry src/exportable/index.ts, the same artefact that is published as @flexprice/ui.

Add a story for a kit component

Stories for the kit belong next to the component source under src/pricing, src/usage, or src/credits. A minimal one:
Open a pull request against flexprice-front with it; the contributing guide covers the frontend setup.

UI kit overview

flexprice/flexprice-front