Skip to content

iRoySwift/solana-dapp-tool

Repository files navigation

shadcn/ui monorepo template

This template is for creating a monorepo with shadcn/ui.

Usage

pnpm dlx shadcn@latest init

Adding components

To add components to your app, run the following command at the root of your web app:

pnpm dlx shadcn@latest add button -c apps/web

or

cd ./packages/common/ui
#or cd ./apps/web
pnpm dlx shadcn@latest add accordion alert alert-dialog aspect-ratio avatar badge breadcrumb button calendar card carousel chart checkbox collapsible command context-menu table dialog drawer dropdown-menu form hover-card input input-otp label menubar navigation-menu pagination popover progress radio-group resizable scroll-area select separator sheet sidebar skeleton slider sonner switch table tabs textarea toast toggle toggle-group tooltip

This will place the ui components in the packages/ui/src/components directory.

update shadcn ui

cd ./packages/common/ui
pnpm up "@radix-ui/*" cmdk lucide-react recharts tailwind-merge clsx --latest

Tailwind

Your tailwind.config.ts and globals.css are already set up to use the components from the ui package.

Using components

To use the components in your app, import them from the ui package.

import { Button } from "@iroy/ui/components/ui/button";

pnpm search dependencies

pnpm list --recursive  --only-projects --depth=2

add other common module to devDependencies

pnpm add -D @iroy/eslint @iroy/typescript --filter @iroy/network --workspace

add dependencies

pnpm add axios qs js-cookie --filter @iroy/network

add other common module to workspace root devDependencies

pnpm add -wD @iroy/eslint @iroy/typescript --filter @iroy/network --workspace

remove dev

pnpm remove -D @iroy/eslint @iroy/typescript --filter @iroy/network

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages