Input

Text input fields with Bloom's soft focus ring and subtle surface styling. Includes a Textarea variant for multi-line content.

Input Usage

import { Input } from "@bloomkit/react";
 
<Input placeholder="Enter your name" />
<Input type="email" placeholder="you@example.com" />
<Input type="password" placeholder="Password" />
<Input disabled placeholder="Not editable" />

Textarea Usage

import { Textarea } from "@bloomkit/react";
 
<Textarea placeholder="Write your message..." />
<Textarea disabled placeholder="Read only" />

Input Props

PropTypeDefaultDescription
typestring"text"HTML input type (text, email, password, number, etc.)
valuestringControlled value
onChange(e: ChangeEvent<HTMLInputElement>) => voidCalled when the value changes
placeholderstring""Placeholder text shown when empty
disabledbooleanfalseDisables the input
classNamestring""Additional Tailwind classes
...propsInputHTMLAttributesAll standard HTML input attributes are forwarded

Textarea Props

PropTypeDefaultDescription
valuestringControlled value
onChange(e: ChangeEvent<HTMLTextAreaElement>) => voidCalled when the value changes
placeholderstring""Placeholder text shown when empty
rowsnumberNumber of visible rows
disabledbooleanfalseDisables the textarea
classNamestring""Additional Tailwind classes
...propsTextareaHTMLAttributesAll standard HTML textarea attributes are forwarded