bearnie

Input

Single-line text input field.

Installation

npx bearnie add input
npx bearnie add input

Usage

import { Input } from "@/components/bearnie/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

Prop Type Default Description
type text | email | password | search | tel | url | number text Input type
placeholder string - Placeholder text
disabled boolean false Disables the input
required boolean false Makes the field required
name string - Form field name
id string - Element ID
value string - Input value
class string - Additional CSS classes