Componentform0.34 KB gzipZero dependencies

Input

Text input with dashed focus border and design tokens.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add input

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Input } from "@/components/ui/input"; <Input type="email" placeholder="Email" />

Source code

input.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxinput.tsx22 lines
import * as React from "react";import { cn } from "./lib/utils"; export type InputProps = React.InputHTMLAttributes<HTMLInputElement>; const Input = React.forwardRef<HTMLInputElement, InputProps>(  ({ className, type, ...props }, ref) => (    <input      ref={ref}      type={type}      className={cn(        "flex h-10 w-full rounded-md border-2 border-dashed border-input bg-transparent px-3 py-1 font-mono text-sm transition-colors placeholder:text-muted-foreground focus-visible:border-solid focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",        className      )}      {...props}    />  ));Input.displayName = "Input"; export { Input }; 

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Input } from "@/components/ui/input"; <Input />
PropTypeDescription
typestringHTML input type.