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

Multi Select

A multi-select component with search and filtering capabilities.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/multi-select

Usage

import {
  MultiSelect,
  MultiSelectContent,
  MultiSelectItem,
} from "@/components/ui/preskok-ui/multi-select"

const assignees = [
  { id: "ana", name: "Ana" },
  { id: "max", name: "Max" },
]

export function MultiSelectDemo() {
  return (
    <MultiSelect placeholder="Select assignees">
      <MultiSelectContent items={assignees}>
        {(assignee) => (
          <MultiSelectItem id={assignee.id}>{assignee.name}</MultiSelectItem>
        )}
      </MultiSelectContent>
    </MultiSelect>
  )
}

Choice Box

Grid or stacked option selector with single or multiple selection modes.

Token FieldNew

Enter free text with selectable inline tokens.

On this page

Installation
Usage
Select fruits