Files
shadcn-ui/apps/www/config/docs.ts
shadcn 4ccff13f9c feat: react-hook-form (#377)
* feat(form): add form component

* feat(www): update site styles

* feat: add form examples

* docs(www): add docs for forms

* docs(www): hide tabs for docs demo
2023-05-19 22:56:49 +04:00

300 lines
6.3 KiB
TypeScript

import { MainNavItem, SidebarNavItem } from "types/nav"
interface DocsConfig {
mainNav: MainNavItem[]
sidebarNav: SidebarNavItem[]
}
export const docsConfig: DocsConfig = {
mainNav: [
{
title: "Documentation",
href: "/docs",
},
{
title: "Components",
href: "/docs/components/accordion",
},
{
title: "Examples",
href: "/examples",
},
{
title: "Figma",
href: "/docs/figma",
},
{
title: "GitHub",
href: "https://github.com/shadcn/ui",
external: true,
},
{
title: "Twitter",
href: "https://twitter.com/shadcn",
external: true,
},
],
sidebarNav: [
{
title: "Getting Started",
items: [
{
title: "Introduction",
href: "/docs",
items: [],
},
{
title: "Installation",
href: "/docs/installation",
items: [],
},
{
title: "Theming",
href: "/docs/theming",
items: [],
},
{
title: "CLI",
href: "/docs/cli",
items: [],
},
{
title: "Typography",
href: "/docs/components/typography",
items: [],
},
],
},
{
title: "Community",
items: [
{
title: "Figma",
href: "/docs/figma",
items: [],
},
],
},
{
title: "Forms",
items: [
{
title: "React Hook Form",
href: "/docs/forms/react-hook-form",
label: "New",
items: [],
},
{
title: "TanStack Form",
href: "#",
items: [],
label: "Soon",
disabled: true,
},
],
},
{
title: "Components",
items: [
{
title: "Accordion",
href: "/docs/components/accordion",
items: [],
},
{
title: "Alert",
href: "/docs/components/alert",
items: [],
},
{
title: "Alert Dialog",
href: "/docs/components/alert-dialog",
items: [],
},
{
title: "Aspect Ratio",
href: "/docs/components/aspect-ratio",
items: [],
},
{
title: "Avatar",
href: "/docs/components/avatar",
items: [],
},
{
title: "Badge",
href: "/docs/components/badge",
items: [],
},
{
title: "Button",
href: "/docs/components/button",
items: [],
},
{
title: "Calendar",
href: "/docs/components/calendar",
items: [],
},
{
title: "Card",
href: "/docs/components/card",
items: [],
},
{
title: "Checkbox",
href: "/docs/components/checkbox",
items: [],
},
{
title: "Collapsible",
href: "/docs/components/collapsible",
items: [],
},
{
title: "Combobox",
href: "/docs/components/combobox",
items: [],
},
{
title: "Command",
href: "/docs/components/command",
items: [],
},
{
title: "Context Menu",
href: "/docs/components/context-menu",
items: [],
},
{
title: "Data Table",
href: "/docs/components/data-table",
label: "New",
items: [],
},
{
title: "Date Picker",
href: "/docs/components/date-picker",
items: [],
},
{
title: "Dialog",
href: "/docs/components/dialog",
items: [],
},
{
title: "Dropdown Menu",
href: "/docs/components/dropdown-menu",
items: [],
},
{
title: "Hover Card",
href: "/docs/components/hover-card",
items: [],
},
{
title: "Input",
href: "/docs/components/input",
items: [],
},
{
title: "Label",
href: "/docs/components/label",
items: [],
},
{
title: "Menubar",
href: "/docs/components/menubar",
items: [],
},
{
title: "Navigation Menu",
href: "/docs/components/navigation-menu",
items: [],
},
{
title: "Popover",
href: "/docs/components/popover",
items: [],
},
{
title: "Progress",
href: "/docs/components/progress",
items: [],
},
{
title: "Radio Group",
href: "/docs/components/radio-group",
items: [],
},
{
title: "Scroll Area",
href: "/docs/components/scroll-area",
items: [],
},
{
title: "Select",
href: "/docs/components/select",
items: [],
},
{
title: "Separator",
href: "/docs/components/separator",
items: [],
},
{
title: "Sheet",
href: "/docs/components/sheet",
items: [],
},
{
title: "Skeleton",
href: "/docs/components/skeleton",
items: [],
},
{
title: "Slider",
href: "/docs/components/slider",
items: [],
},
{
title: "Switch",
href: "/docs/components/switch",
items: [],
},
{
title: "Table",
href: "/docs/components/table",
label: "New",
items: [],
},
{
title: "Tabs",
href: "/docs/components/tabs",
items: [],
},
{
title: "Textarea",
href: "/docs/components/textarea",
items: [],
},
{
title: "Toast",
href: "/docs/components/toast",
items: [],
},
{
title: "Toggle",
href: "/docs/components/toggle",
items: [],
},
{
title: "Tooltip",
href: "/docs/components/tooltip",
items: [],
},
],
},
],
}