Getting started
CLI
The NexUI CLI writes component source files directly into your project — you own every line from the moment it lands. No wrappers, no runtime dependency.
CLI is live — The @jessin/nexui package is published on npm. Run any command below and it will work immediately. Components are fetched from nexui.dev/api/registry and written directly into your project.
nexui init
Run once per project. Creates lib/utils.ts and injects the required CSS variables into globals.css.
nexui add [component]
Copies a component into components/nexui/. The file is plain TypeScript — edit it however you like.
Add multiple components at once:
nexui search [query]
Search components by name, tag, or category.
nexui list
Prints every available component name.
All 57 components
Pass any of these names to nexui add.
accordionalertauth-panelavatarbadgebuttoncalendarcardcarouselchartcheckboxcode-blockcolor-pickercommanddata-tabledate-pickerdialogdropdownfile-uploadforminputkanbanmodalmulti-selectnumber-inputotp-inputpaginationphone-inputpopoverprogressradiorange-sliderratingscroll-areasearchselectseparatorsheetskeletonsliderstepperswitchtabletabstag-inputtextareatimelinetoasttoggletoggle-grouptooltipview-switcherandroid-buttonios-buttondom-animationhover-toolbarhover-button-groupPackage manager variants
No CLI needed — Every component is also available via copy-paste. Open the component library, click Code on any card, and paste the source into components/nexui/[name].tsx.