From a5e4156c827f31dd0829a0799f8f9165c3c3751a Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Wed, 30 Aug 2023 11:49:23 +0300
Subject: [PATCH] Updated usePassThrough docs
---
doc/passthrough/UsePassThroughDoc.vue | 111 ++++++++++++++++++++++++++
doc/tailwind/CustomizationDoc.vue | 10 +--
pages/passthrough/index.vue | 6 ++
3 files changed, 122 insertions(+), 5 deletions(-)
create mode 100644 doc/passthrough/UsePassThroughDoc.vue
diff --git a/doc/passthrough/UsePassThroughDoc.vue b/doc/passthrough/UsePassThroughDoc.vue
new file mode 100644
index 000000000..5917539be
--- /dev/null
+++ b/doc/passthrough/UsePassThroughDoc.vue
@@ -0,0 +1,111 @@
+
+
+
+ An existing pass through configuration is customized with the usePassThrough utility. The first parameter is the object to customize, the second parameter is the customizations and the final parameter is the behavior of merging.
+ One of the example use cases is customizing existing unstyled themes like Tailwind.
+
+
+
+ The mergeSections defines whether the sections from the main configuration gets added and the mergeProps controls whether to override or merge the defined props. Defaults are true for mergeSections and
+ false for mergeProps.
+
+
+
+
+
+
+
+
+
diff --git a/doc/tailwind/CustomizationDoc.vue b/doc/tailwind/CustomizationDoc.vue
index c753bafcb..b45a2c2a2 100644
--- a/doc/tailwind/CustomizationDoc.vue
+++ b/doc/tailwind/CustomizationDoc.vue
@@ -4,10 +4,10 @@
The built-in theme provides a strong base that can be extended further for your requirements. For customization, the pass through values need to be overriden. The unstyled section of the theming documentation for each component
demonstrates the theme with an editable example. For instance, the panel component has the following default configuration.
+
+ Let's assume the title section should be lighter and bigger. For the merge configuration behavior, visit usePassThrough documentation.
+
-
- Let's assume the title section should be lighter and bigger.
-