From aeabc0bf06d0fa1f2ce151c4148b5efcc1bd9dc2 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Thu, 10 Feb 2022 16:03:41 +0100 Subject: [PATCH] Add info about CustomizationContext to the docs --- src/customizationContext/CustomizationContext.md | 3 +++ styleguide.config.js | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 src/customizationContext/CustomizationContext.md diff --git a/src/customizationContext/CustomizationContext.md b/src/customizationContext/CustomizationContext.md new file mode 100644 index 0000000..1d3e313 --- /dev/null +++ b/src/customizationContext/CustomizationContext.md @@ -0,0 +1,3 @@ +It provides customization context to the children. `CustomizationContext` allows +using `useCustomizationContext` in components to check if the reForis UI is +customized or not for specific devices. diff --git a/styleguide.config.js b/styleguide.config.js index 219e045..1798dc9 100644 --- a/styleguide.config.js +++ b/styleguide.config.js @@ -51,6 +51,12 @@ module.exports = { sectionDepth: 1, }, + { + name: "Customization Context", + components: ["src/customizationContext/CustomizationContext.js"], + exampleMode: "expand", + usageMode: "expand", + }, { name: "Bootstrap components", description: "Set of bootstrap components.",