From 5f4967cc8ace17a2cbefc5aa2771688786460d09 Mon Sep 17 00:00:00 2001
From: Arshpreet Singh <73437174+GoldGroove06@users.noreply.github.com>
Date: Sun, 29 Dec 2024 16:05:06 +0530
Subject: [PATCH] Visually hidden docs (#691)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
---
.../visually-hidden/docs/codeUsage.js | 13 ++++++
.../docs/components/visually-hidden/page.js | 44 +++++++++++++++++++
docs/components/navigation/Navigation.js | 4 ++
3 files changed, 61 insertions(+)
create mode 100644 docs/app/docs/components/visually-hidden/docs/codeUsage.js
create mode 100644 docs/app/docs/components/visually-hidden/page.js
diff --git a/docs/app/docs/components/visually-hidden/docs/codeUsage.js b/docs/app/docs/components/visually-hidden/docs/codeUsage.js
new file mode 100644
index 00000000..fae2a4a6
--- /dev/null
+++ b/docs/app/docs/components/visually-hidden/docs/codeUsage.js
@@ -0,0 +1,13 @@
+const code = {
+ javascript: {
+ code: `import VisuallyHidden from "@radui/ui/VisuallyHidden""
+
+const VisualltHiddenExample = () => (
+
+ This is a visually hidden text
+
+)`
+ }
+}
+
+export default code;
\ No newline at end of file
diff --git a/docs/app/docs/components/visually-hidden/page.js b/docs/app/docs/components/visually-hidden/page.js
new file mode 100644
index 00000000..0e77a8dd
--- /dev/null
+++ b/docs/app/docs/components/visually-hidden/page.js
@@ -0,0 +1,44 @@
+const PAGE_NAME = 'VISUALLY_HIDDEN_DOCS'
+import Documentation from "@/components/layout/Documentation/Documentation"
+
+
+import VisuallyHidden from "@radui/ui/VisuallyHidden"
+import SEO from "../../docsIndex"
+export const metadata = SEO.getMetadata(PAGE_NAME)
+
+import codeUsage from "./docs/codeUsage"
+
+const VisuallyHiddenDocs = () => {
+
+ const columns = [
+ {name: 'Prop', key: 'prop'},
+ {name: 'Type', key: 'type'},
+ {name: 'Default', key: 'default'},
+ {name: 'Description', key: 'description'},
+ ];
+
+ const data = [
+ {prop: 'asChild', type: 'boolean', default: 'false', description: 'renders the children in desired element'},
+
+ ];
+
+
+ return
+
+
+
+
+ This is a visually hidden text
+
+
+
+
+
+
+
+
+
+
+}
+
+export default VisuallyHiddenDocs;
\ No newline at end of file
diff --git a/docs/components/navigation/Navigation.js b/docs/components/navigation/Navigation.js
index 6722c20b..d1a60613 100644
--- a/docs/components/navigation/Navigation.js
+++ b/docs/components/navigation/Navigation.js
@@ -162,6 +162,10 @@ const sections = [
{
title: "Tooltip",
path: "/docs/components/tooltip"
+ },
+ {
+ title: "VisuallyHidden",
+ path: "/docs/components/visually-hidden"
}
]
},