From 77ddac9f4d40ad51c55dffbb843598803a4af178 Mon Sep 17 00:00:00 2001 From: Juan-Pablo Scaletti Date: Sun, 18 Aug 2024 13:12:02 -0500 Subject: [PATCH] Update docs --- docs/content/guide/slots.md | 12 +++++------- docs/docs.py | 7 ++++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/content/guide/slots.md b/docs/content/guide/slots.md index 3d92a61..991f327 100644 --- a/docs/content/guide/slots.md +++ b/docs/content/guide/slots.md @@ -122,9 +122,7 @@ The `_slot` variable is scoped to the content of that component, so it's not ava Named slots are a quick way to have multiple content slots, but are a bit messy beyond some simple cases. -Composability offers a more flexible and idiomatic approach when multiple content slots are needed. The idea is to have separated components for each content slot, and then compose them together. - -This pattern allows allows for more reusable components. Let's explore this concept using the same example as above. +Composability offers a more flexible and idiomatic approach when multiple content slots are needed. The idea is to have separated components for each content slot, and then compose them together. Let's explore this concept using the same example as above. Consider a `Modal` component that requires three distinct sections: a header, a body, and a footer. Instead of using named slots, we can create separate components for each section and composing them within a `Modal` component wrapper. @@ -153,10 +151,10 @@ Now, the `Modal` component is responsible for rendering the outer `` and diff --git a/docs/docs.py b/docs/docs.py index fd36556..d49699f 100755 --- a/docs/docs.py +++ b/docs/docs.py @@ -25,7 +25,12 @@ "guide/motivation.md", ], ], - "api.md", + [ + "API", + [ + "api.md", + ], + ], [ "UI components", [ "ui/index.md",