bearnie

Input

Single-line text input field.

Installation

npx bearnie add input
npx bearnie add input

Usage

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

Examples

With label

Password

Disabled

With left icon

With right icon

With button

File

Anatomy

  • Input - A single form input element

Props

Input

PropTypeDefaultDescription
typetext | email | password | search | tel | url | numbertextInput type
placeholderstring-Placeholder text
disabledbooleanfalseDisables the input
requiredbooleanfalseMakes the field required
namestring-Form field name
idstring-Element ID
valuestring-Input value
classstring-Additional CSS classes