From 27bc5deff1607acd9e3f0449d2506c782cbaa2bd Mon Sep 17 00:00:00 2001 From: shadcn Date: Thu, 17 Oct 2024 00:55:28 +0400 Subject: [PATCH] docs: beta testers --- apps/www/components/announcement.tsx | 4 +- apps/www/content/docs/components/sidebar.mdx | 40 ++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/apps/www/components/announcement.tsx b/apps/www/components/announcement.tsx index 44ac1433c8..e70b00745b 100644 --- a/apps/www/components/announcement.tsx +++ b/apps/www/components/announcement.tsx @@ -7,13 +7,13 @@ import { Separator } from "@/registry/new-york/ui/separator" export function Announcement() { return ( {" "} {" "} - npx shadcn init + New sidebar component diff --git a/apps/www/content/docs/components/sidebar.mdx b/apps/www/content/docs/components/sidebar.mdx index 0a9e7e742e..b826d8d0a3 100644 --- a/apps/www/content/docs/components/sidebar.mdx +++ b/apps/www/content/docs/components/sidebar.mdx @@ -28,6 +28,46 @@ Customizable. Let's get started. +## Beta Testers + + + +Create a new Next.js app. + +```bash +pnpm create next-app --tailwind --eslint --typescript --app --no-src-dir --no-import-alias +``` + +Init `shadcn` + +```bash +pnpm dlx shadcn@latest init -d +``` + +Add the `sidebar.tsx` component. + +It is not available in the registry yet. Use the beta url. + +```bash +pnpm dlx shadcn@latest add https://ui-rc.vercel.app/r/styles/new-york/sidebar.json -o +``` + +Install one of the example sidebars. + +```bash +pnpm dlx shadcn@latest add https://ui-rc.vercel.app/r/styles/new-york/sidebar-01.json -o +``` + +To install other sidebars, replace `sidebar-01` with `sidebar-02`, `sidebar-03` or `sidebar-15`. + +Run the app and visit `http://localhost:3000/dashboard`. + +```bash +pnpm dev +``` + + + ## Installation