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" } ] },