Getting Started
Components
- Advanced Toast
- ArrowButton
- Arrows
- Avatar
- Backdrop
- Basic Toast
- Breadcrumb
- Button
- CardBackground
- Card
- ChatButton
- Checkbox
- Checkboxes
- Chip
- ChoiceExpander
- Clickable
- Date Field
- Dropdown
- ElasticHeight
- ExpandableCard
- Filter
- FormCheckbox
- Form Control
- Form Label
- HamburgerIcon
- Heading
- Image
- Link
- Loader
- Number Field
- Pagination
- Password
- Phone Field
- Popin
- Portal
- Prose
- Radio Group
- Radio
- Range
- Select
- SidebarLayout
- Spinner
- Switch
- Tabs
- Tag
- TextField
- ValidationMessage
Prerequisites
Before choosing an installation mode, make sure your project meets the following requirements:
- React 18+
- Node.js or Bun.js
- Tailwind CSS 4
Choose your installation mode
Trident UI can be installed in two modes, depending on how you want to work:
- shadcn registry mode: for teams that want to manage the component code directly in their own repository via shadcn.
- Classic package mode (NPM) with
@clubmed/trident-ui: for teams that want a ready-to-use package and a versioning/release cycle maintained through npm.
Choose your setup guide:
shadcn registry mode
Setup with shadcn to keep and adapt component code directly in your repository.
NPM package mode
Setup (NPM package) for a ready-to-use dependency and npm-managed versioning.
shadcn vs NPM
| Criteria | shadcn registry mode | NPM package mode |
|---|---|---|
| Best for | Teams that want full control over component code | Teams that want a plug-and-play dependency |
| Installation | Add components with shadcn add from the registry | Install @clubmed/trident-ui from npm |
| Code ownership | Component code is copied into your repository | Component code stays in node_modules |
| Versioning model | Managed directly in your app codebase | Managed by npm package versions |
| Customization | Direct file-level customization is straightforward | Prefer composition and overrides |
| Updates | Re-import/merge component changes when needed | Upgrade package version |
| Maintenance effort | More flexibility, but more maintenance responsibility | Lower day-to-day maintenance |