shadcn-solid
DocsComponentsCharts


Get Started
  • Introduction
  • Installation
  • Theming
  • Dark Mode
Form
  • Tanstack Form
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Badge
  • Breadcrumbs
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • File Field
  • Hover Card
  • Kbd
  • Menubar
  • Navigation Menu
  • Number Field
  • OTP Field
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Search
  • Segmented Control
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Switch
  • Table
  • Tabs
  • Text Field
  • Toggle Group
  • Toggle Button
  • Tooltip

Text Field

A text input that allow users to input custom text entries with a keyboard.

Docs API Reference

Component text-field-demo not found in registry.

Installation

Copy and paste the following code into your project:

Usage

import { TextField, TextFieldInput } from "@components/ui/text-field"
<TextField>
  <TextFieldInput />
</TextField>

Examples

Disabled

Component text-field-disabled-demo not found in registry.

Error

Component text-field-error-demo not found in registry.

File

Component text-field-file-demo not found in registry.

Text Area

Component text-field-area-demo not found in registry.

Changelog

2025-11-13 Update <TextFieldErrorMessage />

We've updated the <TextFieldErrorMessage /> component to handle error messages more effectively and better integration with form libraries.

TabsToggle Group
Built & designed by shadcn. Ported to Solid by hngngn. The source code is available on GitHub.