Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2.8 KB

README.md

File metadata and controls

79 lines (63 loc) · 2.8 KB

tauri-ui-boilerplate

Tauri + Next.js 13 + shadcn/ui

Tauri boilerplate with Next.js 13 and shadcn/ui.

Getting Started

gh repo clone agmmnn/tauri-ui-boilerplate
cd tauri-ui-boilerplate
yarn
yarn tauri dev
yarn tauri build

To-Do

  • Titlebar draggable.
  • Titlebar minimize, maximize, close buttons.
  • Titlebar double-click maximize.
  • Decomposing UI into components.
  • Dark-Light mode switch.
  • Get simple data from the Rust backend code.

Customization

Update Components

shadcn/ui is not a library. So you need to update components by hand. You can download the shadcn/ui/apps/www/components/ui directory and paste it into src/components/ui.

Folder Structure

.
├── next-env.d.ts
├── next.config.js    //nextjs config file https://nextjs.org/docs/api-reference/next.config.js/introduction
├── package.json
├── postcss.config.js
├── README.md
├── src               //frontend src:
│   ├── assets
│   ├── components    //from shadcn/ui
│   │   └── ui        //from shadcn/ui
│   ├── lib
│   ├── pages         //next.js pages folder
│   ├── styles
│   └── types
├── src-tauri         //backend src:
│   ├── build.rs
│   ├── Cargo.lock
│   ├── Cargo.toml    // https://doc.rust-lang.org/cargo/reference/manifest.html
│   ├── icons         // https://tauri.app/v1/guides/features/icons/
│   ├── src           //rust codes
│   └── tauri.conf.json    //tauri config file https://tauri.app/v1/api/config/
├── tailwind.config.js     //tailwind config file
├── tsconfig.json          //typescript config file
└── yarn.lock

Recommended IDE Setup