Your API key is encrypted and stored securely.
Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/input
Install the following dependencies:
pnpm add @base-ui/react
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { Input } from "@/components/ui/pxl/input"<Input />Use Field, FieldLabel, and FieldDescription to create an input with a
label and description.
Field Group
Section titled “Field Group”Use FieldGroup to show multiple Field blocks and to build forms.
Disabled
Section titled “Disabled”Use the disabled prop to disable the input. To style the disabled state, add the data-disabled attribute to the Field component.
Invalid
Section titled “Invalid”Use the aria-invalid prop to mark the input as invalid. To style the invalid state, add the data-invalid attribute to the Field component.
Use the type="file" prop to create a file input.
Inline
Section titled “Inline”Use Field with orientation="horizontal" to create an inline input.
Pair with Button to create a search input with a button.
Use a grid layout to place multiple inputs side by side.
Required
Section titled “Required”Use the required attribute to indicate required inputs.
Use Badge in the label to highlight a recommended field.
Input Group
Section titled “Input Group”To add icons, text, or buttons inside an input, use the InputGroup component. See the Input Group component for more examples.
Button Group
Section titled “Button Group”To add buttons to an input, use the ButtonGroup component. See the Button Group component for more examples.