Pixelact Input
pixelact-ui/inputFreeComponent
A simple input component.
Live preview
live · rendered by the registry
Rendered by Pixelact UI on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://pixelactui.com/r/input.jsonSource
1import * as React from "react";2import { cn } from "@/lib/utils";3import "@/components/ui/pixelact-ui/styles/styles.css";45export interface PixelInputProps6 extends React.InputHTMLAttributes<HTMLInputElement> {7 disabled?: boolean;8 className?: string;9}1011const Input = React.forwardRef<HTMLInputElement, PixelInputProps>(12 ({ className, disabled, ...props }, ref) => {13 return (14 <input15 className={cn(16 "pixel__input pixel-font max-w-full outline-none p-2 bg-background text-foreground shadow-(--pixel-box-shadow) placeholder:text-sm md:placeholder:text-base box-shadow-margin disabled:opacity-40",17 disabled && "disabled:opacity-40 disabled:cursor-not-allowed",18 className19 )}20 disabled={disabled}21 ref={ref}22 {...props}23 />24 );25 }26);27Input.displayName = "PixelInput";2829export { Input };
Files it writes
More from Pixelact UI
All 28 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Pixelact Accordionaccordion | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Alertalert | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Alert Dialogalert-dialog | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Avataravatar | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Badgebadge | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Breadcrumbbreadcrumb | Pixelact UI | Components | Free | no deps · 2 files | |
| Pixelact Buttonbutton | Pixelact UI | Components | Free | no deps · 3 files | |
| Pixelact Calendarcalendar | Pixelact UI | Components | Free | no deps · 2 files |
