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
Forms

Token Field

Enter free text with selectable inline tokens.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/token-field

Usage

import { TokenFieldValue } from "react-aria-components/TokenField"

import { Token, TokenField } from "@/components/ui/preskok-ui/token-field"

const value = new TokenFieldValue([
  { type: "text", text: "Find " },
  { type: "token", text: "status:available" },
])

export function TokenFieldDemo() {
  return (
    <TokenField defaultValue={value} label="Inventory query">
      {(segment) => <Token>{segment.text}</Token>}
    </TokenField>
  )
}

TokenField uses a TokenFieldValue to represent its sequence of text and token segments. Extend that value class when the field needs custom tokenization rules.

Multi Select

A multi-select component with search and filtering capabilities.

Tag Field

A tag input field for adding and removing tags.

On this page

Installation
Usage
Vehicle note
Move ​#available​ vehicles to ​@Maja​ for today’s review.