Skip to content

feat!(react-storybook-addon): make docs enhancements configurable and opt in (turned off by default) - #34950

Merged
Martin Hochel (Hotell) merged 4 commits into
microsoft:masterfrom
Hotell:sb-addon/configurable-docs-preview
Aug 6, 2025
Merged

Martin Hochel (Hotell) merged 4 commits into
microsoft:masterfrom
Hotell:sb-addon/configurable-docs-preview

Conversation

@Hotell

@Hotell Martin Hochel (Hotell) commented Jul 30, 2025 •

Copy link
Copy Markdown
Contributor

Previous Behavior

addon custom DocsPage is used by default / no config possible

New Behavior

Fluent Docs Mode enhancements are now fully configurable via following schema

type FluentDocsConfig =
  | boolean
  | {
      tableOfContents?: boolean;
      dirSwitcher?: boolean;
      themePicker?: boolean;
      argTable?:
        | boolean
        | {
            slotsApi?: boolean;
            nativePropsApi?: boolean;
          };
    };

Breaking Changes

💡 Docs mode enhancement are now turned off by default.

in order to enable it, it needs to be enabled in preview.js/ts config

{
export const parameters = {
  reactStorybookAddon: {
    docs: true
  },
};
}

Related Issue(s)

@Hotell Martin Hochel (Hotell) changed the title Sb addon/configurable docs preview feat!(react-storybook-addon): make docs oveerides opt in - turned off by default Jul 30, 2025
@Hotell Martin Hochel (Hotell) changed the title feat!(react-storybook-addon): make docs oveerides opt in - turned off by default feat!(react-storybook-addon): make docs enhancements configurable and opt in (turned off by default) Jul 30, 2025
@Hotell
Martin Hochel (Hotell) force-pushed the sb-addon/configurable-docs-preview branch from 8dd829f to 7180c36 Compare August 1, 2025 09:39
@github-actions github-actions Bot removed the NX: core label Aug 1, 2025
@github-actions

github-actions Bot commented Aug 1, 2025 •

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

github-actions Bot commented Aug 1, 2025

Copy link
Copy Markdown

Pull request demo site: URL

@Hotell
Martin Hochel (Hotell) force-pushed the sb-addon/configurable-docs-preview branch from 83b51b0 to 1c96820 Compare August 1, 2025 09:49
@Hotell
Martin Hochel (Hotell) marked this pull request as ready for review August 1, 2025 10:49
@Hotell
Martin Hochel (Hotell) requested review from a team as code owners August 1, 2025 10:49
@Hotell
Martin Hochel (Hotell) merged commit 609e0f3 into microsoft:master Aug 6, 2025
@Hotell
Martin Hochel (Hotell) deleted the sb-addon/configurable-docs-preview branch August 6, 2025 14:55
Tudor Popa (tudorpopams) pushed a commit to tudorpopams/fluentui that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants