Skip to content

Commit bdc3145

Browse files
committed
Enable to disable builtin props
1 parent 8b676ca commit bdc3145

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/DarkModeSwitch.stories.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ const { meta, getStory } = getStoryFactory({
66
sectionName,
77
"wrappedComponent": { DarkModeSwitch },
88
"description": `
9+
A button that opens a dialog to enable the user to select light or dark mode.
10+
911
- [See DSFR documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/parametres-d-affichage),
10-
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/DarkModeSwitch.tsx)`,
12+
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/DarkModeSwitch.tsx)
13+
14+
Optionally, you can also use \`import { useIsDark } from "@codegouvfr/react-dsfr"\` to manually monitor and controls
15+
the theme state.
16+
`,
1117
"disabledProps": ["darkMode", "containerWidth"]
1218
});
1319

0 commit comments

Comments
 (0)