dealtech-ui
v2.0.0
Published
DealTech UI starter CLI with installable UI elements and layouts for React + Vite + Tailwind
Maintainers
Readme
dealtech-ui
dealtech-ui adalah CLI untuk generate UI Panel Starter dan menambahkan UI element atau layout secara terpisah ke project React Anda.
Core dealtech-ui v2.0.0:
installuntuk starter admin panel lengkapadduntuk copy UI element siap pakaiadd-layoutuntuk copy layout beserta style CSS pendukungnya
Usage
Install starter app
npx dealtech-ui install my-admin-appCommand ini akan:
- Membuat folder project baru
- Menyalin starter template DealTech UI
- Menjalankan
npm installotomatis
Lalu jalankan:
cd my-admin-app
npm run devAdd UI element
npx dealtech-ui add button badge modalCommand ini akan menyalin file ke src/components/ui/... dan otomatis membawa dependency lokal yang dibutuhkan.
Contoh:
npx dealtech-ui add tabledata-v2tabledata-v2 akan ikut membawa button dan actionbutton bila belum ada.
Add layout
npx dealtech-ui add-layout admin-layoutCommand ini akan menyalin:
src/layout/AdminLayout.tsxsrc/components/layout/AdminHeader.tsxsrc/components/layout/AdminSidebar.tsxsrc/styles/admin.css
Add page
npx dealtech-ui add-page reportsCommand ini akan:
- membuat file
src/pages/reports/ReportsPage.tsx - menambahkan route
/dashboard/reportskesrc/layout/AdminApp.tsx
Flags
npx dealtech-ui install my-admin-app --no-install
npx dealtech-ui install my-admin-app --force
npx dealtech-ui add button --force
npx dealtech-ui add-layout admin-layout --force--no-installuntuk skipnpm install--forceuntuk overwrite file atau folder yang sudah ada
Available UI
actionbutton, badge, button, cardtabelv1, confirmmodal, filterselect, formmodal, infosection, input, inputdate, longtextinput, modal, notecard, pageheader, pagination, plancard, progresbarv1, progresbarv2, progresbarv3, scroltotop, searchableselect, searchinput, statcardoverview, tabledata-v1, tabledata-v2, timelinetabel, uploadfield, welcomecard
Alias umum seperti action-button, page-header, search-input, scroll-to-top, dan progress-bar-v2 juga didukung.
Available Layout
admin-layout
Local development
git clone <this-repo>
cd dealtech-ui
npm linkLalu dari folder lain:
dealtech-ui install demo-app
dealtech-ui add badge
dealtech-ui add-layout admin-layoutLicense
MIT | Deal-Tech
