+
-
+
+
+
+
+
@@ -147,25 +176,3 @@ export default function Page() {
>
)
}
-
-const Navbar = ({ children }: { children: React.ReactNode }) => {
- return (
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/nuxt-ts/app/pages/navigation-menu.vue b/examples/nuxt-ts/app/pages/navigation-menu.vue
new file mode 100644
index 0000000000..fa40d3845e
--- /dev/null
+++ b/examples/nuxt-ts/app/pages/navigation-menu.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/nuxt-ts/app/pages/popover.vue b/examples/nuxt-ts/app/pages/popover.vue
index 235a90fe94..fdacdff4f1 100644
--- a/examples/nuxt-ts/app/pages/popover.vue
+++ b/examples/nuxt-ts/app/pages/popover.vue
@@ -25,7 +25,7 @@ const api = computed(() => popover.connect(service, normalizeProps))
I am just text
diff --git a/examples/preact-ts/src/components/presence.tsx b/examples/preact-ts/src/components/presence.tsx
new file mode 100644
index 0000000000..1283def478
--- /dev/null
+++ b/examples/preact-ts/src/components/presence.tsx
@@ -0,0 +1,41 @@
+import * as presence from "@zag-js/presence"
+import { normalizeProps, useMachine } from "@zag-js/preact"
+import { forwardRef, Ref } from "preact/compat"
+import { useEffect, useRef } from "preact/hooks"
+import { JSX } from "preact"
+
+interface PresenceProps extends JSX.HTMLAttributes
@@ -39,6 +52,8 @@ export default function Page() {
Products
+
+
@@ -46,6 +61,8 @@ export default function Page() {
Company
+
+
@@ -53,6 +70,8 @@ export default function Page() {
Developers
+
+
@@ -138,7 +157,17 @@ export default function Page() {
Heading
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
+
+
+ Learn More
+
+
-
- {children}
-
-
- )
-}
diff --git a/examples/nuxt-ts/app/components/Presence.vue b/examples/nuxt-ts/app/components/Presence.vue
new file mode 100644
index 0000000000..95914ceb6c
--- /dev/null
+++ b/examples/nuxt-ts/app/components/Presence.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
diff --git a/examples/nuxt-ts/app/pages/navigation-menu-viewport.vue b/examples/nuxt-ts/app/pages/navigation-menu-viewport.vue
new file mode 100644
index 0000000000..19b44c5215
--- /dev/null
+++ b/examples/nuxt-ts/app/pages/navigation-menu-viewport.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ Pricing
+
+
+
+
+
+ Heading
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
+
+
+ Learn More
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ Pricing
+
+
+
-
+
+
@@ -36,7 +36,7 @@ const api = computed(() => popover.connect(service, normalizeProps))
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {renderLinks({
+ value: "products",
+ items: [
+ "Analytics Platform",
+ "Customer Engagement",
+ "Marketing Automation",
+ "Data Integration",
+ "Enterprise Solutions",
+ "API Documentation",
+ ],
+ })}
+
+ {renderLinks({
+ value: "products",
+ items: ["Case Studies", "Success Stories", "Integration Partners", "Security & Compliance"],
+ })}
+
+
+
+ {renderLinks({
+ value: "company",
+ items: ["About Us", "Leadership Team", "Careers", "Press Releases"],
+ })}
+
+ {renderLinks({
+ value: "company",
+ items: ["Investors", "Partners", "Corporate Responsibility"],
+ })}
+
+
+
+ {renderLinks({
+ value: "developers",
+ items: [
+ "API Documentation",
+ "SDKs & Libraries",
+ "Developer Guides",
+ "Code Samples",
+ "Webhooks",
+ "GraphQL Explorer",
+ ],
+ })}
+ {renderLinks({
+ value: "developers",
+ items: ["Developer Community", "Changelog", "Status Page", "Rate Limits"],
+ })}
+
+
+
+ Heading
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
+
+
+ Learn More
+
+
+
+
+
+
+
+
+
+
+
+ {renderLinks({
+ value: "products",
+ items: [
+ "Analytics Platform",
+ "Customer Engagement",
+ "Marketing Automation",
+ "Data Integration",
+ "Enterprise Solutions",
+ "API Documentation",
+ ],
+ })}
+
+
+
+
+
+
+
+
+
+ {renderLinks({
+ value: "company",
+ items: ["About Us", "Leadership Team", "Careers", "Press Releases"],
+ })}
+
+
+
+
+
+
+
+
+
+ {renderLinks({
+ value: "developers",
+ items: ["Investors", "Partners", "Corporate Responsibility"],
+ })}
+
+
+
+
+
+ Pricing
+
+
+
-
+
+
@@ -46,7 +47,7 @@ export default function Page() {
X
-