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

Field

Core field components including Label, Description, FieldError, Fieldset, and Legend.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/field

Usage

import { Form } from "react-aria-components/Form"

import {
  Description,
  FieldError,
  Fieldset,
  Label,
  Legend,
} from "@/components/ui/preskok-ui/field"
import { Input } from "@/components/ui/preskok-ui/input"
import { TextField } from "@/components/ui/preskok-ui/text-field"

export function Example() {
  return (
    <Form>
      <Fieldset>
        <Legend>Profile information</Legend>
        <TextField isRequired name="email">
          <Label>Email</Label>
          <Input type="email" />
          <Description>We will never share your email.</Description>
          <FieldError />
        </TextField>
      </Fieldset>
    </Form>
  )
}

Components

  • Label - Form field label
  • Description - Helper text for fields
  • FieldError - Error message display
  • Fieldset - Groups related form fields
  • Legend - Title for fieldset groups

Note

The Input component has been moved to a separate component. See the Input documentation for usage.

Theme

Customize and generate Preskok UI color tokens.

Form

Group inputs and handle validation using the native form element.

On this page

Installation
Usage
Components
Note
Profile information

Update your account's profile information and email address.

This is your public display name.
This is your email address.