Dasar UI Library

Input

A foundational text input component that supports theming, custom masking, validation states, and rich content slots.
Basic Usage

Bound Value: None

Appearance & Sizes
Prefix, Suffix & Slots
https://
.com
Need help?
Input Masks
Validation & States
Invalid username format.
This field is currently disabled.
More Example
Rp
/ month
0 / 50

API Reference

Property
Type
Default
Description
valueany '' The input value. Supports two-way binding [(ngModel)] and Reactive Forms.
typeDasarInputType 'text' Native HTML input type (text, password, email, number, search, url, tel).
maskDasarInputMaskType undefined Built-in masks ("thousand", "decimal", "date") or a custom formatting function.
appearance'outline' | 'filled' 'outline' Visual style of the input container.
size'sm' | 'md' | 'lg' 'md' Controls height, padding, and font size.
radiusScaleAttributeType 'md' Border radius.
label / label-rightstring undefined Text labels rendered above the input.
hintstring undefined Helper text rendered below the input.
placeholderstring '' Native placeholder attribute.
full-widthboolean false Expands the component to 100% width.
disabled / readonlyboolean false Standard HTML disabled and readonly states.
errorboolean false Applies red validation styling.
fluidboolean false Removes all padding from the input container.
(valueChange)EventEmitter<any> - Emits whenever the input value changes.
[prefix] / [suffix]Content Slot - Directives to project content inside the left or right of the input container.
[extra-label-slot]Content Slot - Replaces the label-right text with custom HTML content.