Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Installation

Next.js

Install and configure Preskok UI for Next.js.

View as MarkdownAsk ChatGPT

Create a Next.js app

Create a Next.js app with Tailwind CSS and the @/* import alias:

npx create-next-app@latest my-app --ts --tailwind --eslint --app --src-dir --import-alias "@/*"
cd my-app

Initialize Preskok UI

Run the shadcn CLI from the project root:

npx shadcn@latest init @preskok/default

This installs the Preskok base registry item, writes components.json, configures the @preskok registry namespace, and adds the shared utilities used by Preskok components.

Add a component

Add components through the Preskok registry namespace:

npx shadcn@latest add @preskok/button

The command above will add the Button component to your project. You can then import it like this:

app/page.tsx
import { Button } from "@/components/ui/preskok-ui/button"

export default function Home() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  )
}

Installation

How to install dependencies and structure your app.

Vite

Install and configure Preskok UI for Vite.

On this page

Create a Next.js app
Initialize Preskok UI
Add a component