Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
FirstflowWidget wraps your chat UI and renders the active experience in the correct position relative to your composer. It must be a descendant of FirstflowProvider.
Usage
Props
Controls where experiences appear relative to the widget boundary:
overlay— centered modal over the chat areainlineStack— inline, rendered above the composer (the last child of the widget)
inlineStack for experiences that should feel like part of the conversation flow.When
true, a minimize button appears on the experience chrome. Users can collapse the experience to a pill and restore it by clicking the pill.Color scheme for experience UI elements:
light— always lightdark— always darkauto— follows the OS color scheme preference
Called when an experience becomes visible. Useful for analytics or pausing other UI elements.
Called when an experience is dismissed by the user.
Notes
- Only one experience renders at a time — the highest-priority eligible one
- Experience priority is set in the Dashboard
- The widget renders nothing when no experience is eligible