Skip to content

Input

<bh-input> | BharatInput

Input component provides a flexible and customizable input field with size, style, label, variant, and hint support.

Basic Usage

Sizes

Styles: Outline & Pill

Label & Hint

Validations

Custom Example

Properties

PropertyTypeDescription
placeholderstringInput placeholder text
placeholderColorstringPlaceholder text color
placeholderSizestringPlaceholder text size
valuestringInput value
typestringInput type (text, password, number, etc.)
sizestringInput size (xsmall, small, medium, large, xlarge)
widthstringWidth of the input
heightstringHeight of the input
fontSizestringFont size of input text
backgroundstringBackground color
borderstringBorder style
pillbooleanMakes input pill-shaped
outlinebooleanRemoves background and outlines the input
labelstringLabel text
labelPositionstringtop or left
labelSizestringFont size of label
labelColorstringColor of label
hintstringHint text below input
hintColorstringColor of hint text
hintSizestringSize of hint text
validationTypestringValidation (email,password,number)