Skip to content

React form components

Free React form components for Tailwind CSS v4: inputs, selects, comboboxes, OTP, date and currency fields, with labels, errors and dark mode built in.

54 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

This category holds every control a form needs: text fields (Input, Textarea, PasswordInput, PhoneInput, CurrencyInput, MaskedInput), choices (Checkbox, RadioGroup, Switch, Select, Combobox, MultiSelect), dates and times, sliders, file and image uploads, and FormField, which links a label, hint and error message to any control.

Choose by the shape of the answer. One choice from a short list is a RadioGroup when the options fit on screen, a Select when they do not, and a Combobox once there are more than about seven and typing helps. Several choices are a MultiSelect from a fixed list or TagsInput for free entries. The date fields wrap the browser's native date input and hold ISO strings, so they need no date library.

Which one should I use?

You needUseWhy
Pick one of two to six options, all visibleRadio GroupArrow keys move and select
Pick one option from a longer listSelectBase UI, with typeahead
Pick one from a long list by typingComboboxFilters as you type
Type freely, with suggestionsAutocompleteThe value can be anything typed
Pick several from a fixed listMulti SelectChosen items show as removable chips
Enter free-form tags or emailsTags InputEnter or comma adds a tag
Pick a dateDate PickerNative input, ISO string value
Pick a start and end dateDate Range PickerTwo native date inputs in one group
Show a month grid on the pageCalendar MonthReal weekday alignment, full keyboard
A setting that applies at onceSwitchUse Checkbox for submitted forms
A money amountCurrency InputDecimal keypad on mobile
A value with a fixed format, like a phone numberMasked InputFormats as you type
Label, hint and error around a controlForm FieldSets aria-describedby and aria-invalid
A long form split into stepsForm WizardValidates each step before moving on

54 items

npx shadcn@latest add @minidev/autocomplete @minidev/calendar-month @minidev/character-count @minidev/checkbox-group @minidev/checkbox @minidev/chip-filter @minidev/choice-card @minidev/color-picker @minidev/combobox @minidev/comment-composer @minidev/currency-input @minidev/date-picker @minidev/date-range-picker @minidev/editable-heading @minidev/emoji-picker @minidev/facet-filter @minidev/file-dropzone @minidev/form-field @minidev/image-upload @minidev/input-affix @minidev/input @minidev/label @minidev/mention-input @minidev/multi-select @minidev/number-input @minidev/password-input @minidev/phone-input @minidev/radio-group @minidev/range-slider @minidev/rating @minidev/rich-text-toolbar @minidev/search-input @minidev/search-with-results @minidev/segmented-control @minidev/select @minidev/slash-command-menu @minidev/slider @minidev/switch @minidev/tags-input @minidev/textarea @minidev/time-picker @minidev/user-chip @minidev/workspace-create @minidev/form-wizard @minidev/onboarding-flow @minidev/password-strength @minidev/signature-pad @minidev/masked-input @minidev/floating-label-input @minidev/markdown-editor @minidev/calendar @minidev/date-time-picker @minidev/timezone-select @minidev/country-select

Components 52

  • Text input that filters string options as you type, using ARIA combobox and listbox roles. Works controlled or uncontrolled and lists up to eight matches.

    npx shadcn@latest add @minidev/autocomplete
  • Month calendar grid with weekday headers and clickable day cells that highlight the selected date. A simple Tailwind base for date views and schedulers.

    npx shadcn@latest add @minidev/calendar-month
  • Live React character counter that shows the current count against a limit and turns red when it goes over. Announces changes politely to screen readers.

    npx shadcn@latest add @minidev/character-count
  • Vertical wrapper that groups related checkboxes under role group with even spacing. Use it with Checkbox and labels for multi select settings.

    npx shadcn@latest add @minidev/checkbox-group
  • Shadcn style checkbox on Base UI with an animated check, indeterminate state, invalid and disabled styles, and an enlarged hit area for touch.

    npx shadcn@latest add @minidev/checkbox
  • Single select filter chips in React that behave as a radio group, with an accent ring on the active chip. Good for quick filters above lists and tables.

    npx shadcn@latest add @minidev/chip-filter
  • Selectable React card button with an icon, title and description, using aria-pressed and an accent outline when chosen. Suits plan pickers and onboarding.

    npx shadcn@latest add @minidev/choice-card
  • Swatch color picker with eight OKLCH presets, a ring on the selected swatch and listbox semantics. Works controlled or uncontrolled for theme or label colors.

    npx shadcn@latest add @minidev/color-picker
  • Shadcn style combobox: a popover select with a filter input, check mark on the chosen item and an empty message. Built on Base UI popover for React.

    npx shadcn@latest add @minidev/combobox
  • Comment box with a three row textarea and a Comment button that stays disabled until there is text. Submits the trimmed value and clears the field.

    npx shadcn@latest add @minidev/comment-composer
  • Money input with a currency code prefix, decimal keypad on mobile and tabular numbers. Controlled via a string value to avoid rounding issues in React forms.

    npx shadcn@latest add @minidev/currency-input
  • Date picker built on the native date input, styled to match the rest of your form fields. Returns ISO date strings and supports disabled and labelled states.

    npx shadcn@latest add @minidev/date-picker
  • Start and end date range picker made from two labelled date inputs. Works controlled or uncontrolled and returns a from and to object for filters and reports.

    npx shadcn@latest add @minidev/date-range-picker
  • Inline editable title that looks like a large heading but is a text input. Use it for document, page or project names; works controlled or uncontrolled.

    npx shadcn@latest add @minidev/editable-heading
  • Compact emoji picker grid with a default set of twelve reactions or your own list, using listbox and option roles. Calls onSelect with the chosen emoji.

    npx shadcn@latest add @minidev/emoji-picker
  • A titled checkbox facet group for sidebar search filters in React. Each option can show a result count, and the selected values come back as an array.

    npx shadcn@latest add @minidev/facet-filter
  • A React drag and drop upload zone with accept and reject states, type and size checks, image previews, per file progress, retry and screen reader updates.

    npx shadcn@latest add @minidev/file-dropzone
  • A wrapper that pairs any input with its label, required marker, help text and an error message announced with role alert. Keeps React forms consistent.

    npx shadcn@latest add @minidev/form-field
  • A single image picker that starts as a drag and drop zone, then swaps to a large preview with a remove button. Returns an object URL and the File in React.

    npx shadcn@latest add @minidev/image-upload
  • A text input with leading and trailing slots for icons, units or buttons, sharing one focus ring and invalid state across the field. Tailwind styled.

    npx shadcn@latest add @minidev/input-affix
  • The base text input with sm, default and lg sizes and designed hover, focus, disabled, read only and invalid states. A drop in shadcn style input for React.

    npx shadcn@latest add @minidev/input
  • A form label that dims and blocks pointer events when its peer input or group is disabled. Native label API, styled with Tailwind like the shadcn label.

    npx shadcn@latest add @minidev/label
  • A comment textarea that opens a suggestion list when you type @, filters names as you keep typing and inserts the chosen @mention. For React comments.

    npx shadcn@latest add @minidev/mention-input
  • A multi select dropdown in a popover with check marks on chosen items and removable chips below the trigger. Works controlled or uncontrolled in React.

    npx shadcn@latest add @minidev/multi-select
  • A numeric stepper with minus and plus buttons around a centered input that clamps to min and max and moves by a custom step. Works controlled or uncontrolled.

    npx shadcn@latest add @minidev/number-input
  • A password field with a show and hide toggle inside the input, an eye icon that swaps state and an accessible label. Supports sm, default and lg sizes in React.

    npx shadcn@latest add @minidev/password-input
  • A telephone number field with type tel, a numeric keypad on mobile, tel autocomplete, tabular digits and a default aria label. Styled like the React base input.

    npx shadcn@latest add @minidev/phone-input
  • Accessible radio group on Base UI with keyboard navigation, a springy checked dot, larger hit areas, and invalid and disabled states. A shadcn-style drop in.

    npx shadcn@latest add @minidev/radio-group
  • Two-thumb range slider for picking a min and max, with value bubbles on both thumbs while dragging, optional marks, a formatter and an onValueCommitted hook.

    npx shadcn@latest add @minidev/range-slider
  • Star rating input rendered as a radiogroup, with one labelled radio per star, a configurable max, disabled state, and controlled or uncontrolled value in React.

    npx shadcn@latest add @minidev/rating
  • Formatting toolbar with bold and italic toggles, link, bullet and numbered list buttons, and a divider. Uses role toolbar with labelled icon toggles in React.

    npx shadcn@latest add @minidev/rich-text-toolbar
  • Search input with a leading search icon and a clear button that appears once there is text. Comes in sm, default and lg sizes, controlled or uncontrolled.

    npx shadcn@latest add @minidev/search-input
  • Search field with a results list below it showing titles and optional subtitles, plus a No results state. Emits onSearch as you type so you can filter in React.

    npx shadcn@latest add @minidev/search-with-results
  • Segmented control with a raised thumb that springs between options, arrow, Home and End key support, icons, badges, three sizes and reduced motion support.

    npx shadcn@latest add @minidev/segmented-control
  • Select dropdown on Base UI with a trigger in three sizes, an animated popup, groups, labels, separators, a check indicator and scroll arrows. Shadcn-compatible.

    npx shadcn@latest add @minidev/select
  • React slash command menu that filters commands by the typed query, shows each as /name with an optional hint, and falls back to a No commands message.

    npx shadcn@latest add @minidev/slash-command-menu
  • Slider on Base UI with a hairline rail, a keycap thumb, a value bubble while dragging, optional labelled marks, Intl number formatting and vertical support.

    npx shadcn@latest add @minidev/slider
  • Switch on Base UI whose thumb stretches on press then springs across, with sm and default sizes, a loading spinner state and an optional clickable label row.

    npx shadcn@latest add @minidev/switch
  • React tags input that adds a chip on Enter or comma, skips duplicates, removes the last tag on Backspace and gives each chip a labelled remove button.

    npx shadcn@latest add @minidev/tags-input
  • Multiline textarea with a 96px minimum height, comfortable line height, hairline border, focus ring and subtle placeholder. A shadcn-compatible Textarea.

    npx shadcn@latest add @minidev/textarea
  • React time picker built on the native time input, styled to match the other inputs, with a controlled value, onChange, disabled state and an aria-label.

    npx shadcn@latest add @minidev/time-picker
  • React user chip showing a small avatar with initials fallback and the person's name, plus an optional remove button. Good for assignees, mentions and pickers.

    npx shadcn@latest add @minidev/user-chip
  • A compact create workspace form in React with a required name field, a URL slug input and a submit button wired to an onCreate callback.

    npx shadcn@latest add @minidev/workspace-create
  • A React password field with a four step strength meter and a live rule checklist. Announces the score politely and accepts your own scorer such as zxcvbn.

    npx shadcn@latest add @minidev/password-strength
  • Draw a signature with mouse, pen or finger on a canvas with pressure aware strokes, undo and clear, a typed name fallback and PNG export for forms.

    npx shadcn@latest add @minidev/signature-pad
  • React masked input that formats phones, dates, plates and IBANs as you type, keeps the caret steady on edits and pastes, and returns masked and raw values.

    npx shadcn@latest add @minidev/masked-input
  • React floating label input and textarea whose label springs onto the top border on focus or fill, with helper text, an error state and a leading icon.

    npx shadcn@latest add @minidev/floating-label-input
  • React markdown editor with a toolbar that wraps the selection, shortcuts, write, split and preview modes, a live preview without innerHTML and a word count.

    npx shadcn@latest add @minidev/markdown-editor
  • React calendar for Tailwind and shadcn: single, range or multiple dates, two months, preset ranges, a hover preview of the range and full arrow-key support.

    npx shadcn@latest add @minidev/calendar
  • React date and time picker in one popover: a calendar and a scrollable time list, 5 to 30 minute steps, past times disabled and a 12 or 24 hour clock.

    npx shadcn@latest add @minidev/date-time-picker
  • React time zone picker on Base UI Combobox: search by city, UTC offset or abbreviation, live local times, region groups and the user's zone pinned on top.

    npx shadcn@latest add @minidev/timezone-select
  • React country select with search, emoji flags and names localised by Intl.DisplayNames. Returns ISO codes, pins top countries and submits with forms.

    npx shadcn@latest add @minidev/country-select

Blocks and full pages 2

  • A three step React form wizard with a stepper for basics, details and review, per step fields, and back and next buttons that become submit at the end.

    npx shadcn@latest add @minidev/form-wizard
  • A three step onboarding card for naming a workspace, inviting teammates by email and reviewing theme choices, with step progress and back or continue.

    npx shadcn@latest add @minidev/onboarding-flow

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

Frequently asked questions

What is the best React date picker for shadcn/ui?

It depends on what the page needs. DatePicker wraps the browser's native date input, so it gets a localised format, a calendar popup and keyboard support without a date library, and its value is an ISO string such as "2026-11-14". Use DateRangePicker for a from/to pair and CalendarMonth when the month grid should stay visible.

Should I use Select, Combobox or MultiSelect?

Select for one choice from a list people can scan, Combobox when there are more than about seven options and typing to filter helps, and MultiSelect when people can pick several. Select and Combobox are built on Base UI, so typeahead, arrow keys and Escape work without extra code.

Do these form components work with React Hook Form?

Yes. Input, Textarea and the other fields built on native inputs pass every prop through, so register() works on them directly. Controls that report changes through a callback, such as Select (onValueChange) and Checkbox (onCheckedChange), go inside React Hook Form's Controller.

How do I show a validation error under a field?

Wrap the control in FormField and pass error. It links the message to the control with aria-describedby and sets aria-invalid while there is an error, so the border turns red and screen readers read the message.