@pihanga2/shadcn
v0.2.5
Published
Pihanga core card components built on shadcn/ui and Radix UI — the npm distribution of pihanga-shadcn.
Downloads
819
Maintainers
Readme
@pihanga2/shadcn
Pihanga core card components — built on shadcn/ui and Radix UI.
This is the traditional npm package distribution of the pihanga-shadcn card library.
A copy-on-install shadcn registry is also available for teams that prefer the shadcn workflow:
npx shadcn@latest add https://ivcap-works.github.io/pihanga-shadcn/r/buttonInstallation
npm install @pihanga2/shadcnInstall the required peer dependencies:
npm install react react-dom @pihanga2/core @pihanga2/cardsTailwind CSS
This package ships TypeScript source with Tailwind CSS utility classes. Add the package to your Tailwind content glob so that utility classes are included in your generated CSS.
Tailwind v3 (tailwind.config.js):
module.exports = {
content: [
// … your project files …
"./node_modules/@pihanga2/shadcn/dist-lib/**/*.{js,jsx,ts,tsx}",
],
};Tailwind v4 (tailwind.css):
@source "../../node_modules/@pihanga2/shadcn/dist-lib";Usage
Import only the cards your app uses — unused cards are eliminated by your bundler:
import "@pihanga2/shadcn/cards/button";
import "@pihanga2/shadcn/cards/dialog";
import "@pihanga2/shadcn/cards/dataTable";Included cards (35)
badgeboxbuttoncheckboxconditionaldataTabledialogdropDownMenufieldfileDropflexGridformframeworkinputjsonViewerlistloadingOverlayloadingSkeletonmenumodeTogglenavbarSearchpageWithNavbarpasteTargetresizableselectslidersliderValuestackstepperswitchtabstextFieldtoasttoggleGrouptypography
Source & registry
- Repository: https://github.com/ivcap-works/pihanga-shadcn
- shadcn registry: https://ivcap-works.github.io/pihanga-shadcn/r
