Angular Forms Library | ng-hub-ui-forms
Accessible Angular form fields (input, textarea, slider, select, datepicker) with automatic control/group/form error display, reactive forms and CSS variables.
Overview
Why teams search for this library
Use this Angular forms library when you need accessible form fields with automatic validation-error display, a forked ng-select, a from-scratch datepicker and runtime CSS-variable theming — without Bootstrap.
Install
npm install ng-hub-ui-formsJump to
Ideal for
- signup and checkout forms
- settings pages
- filters and search
- admin dashboards
About forms
ng-hub-ui-forms unifies every form field behind one contract: bind it with reactive forms and the matching errors appear automatically at the control, group and form level. Fields are standalone, OnPush and signal-native; the select is a maintained fork of ng-select themed with hub tokens; the datepicker is built on native Date and the Angular CDK overlay. Everything is themed through canonical --hub-* CSS variables, with runtime dark mode.
Feature guides
Text fields
The `hub-input` field with reactive-forms binding and automatic, zero-wiring error display. Text, email, password, number and counter, plus floating labels and input-group addons.
Examples:
Text fields & auto-errors
Text fields & auto-errors
Number, counter, color, switch, checkbox
Number, counter, color, switch, checkbox
Input groups, file & floating label
Input groups, file & floating label
Pattern masks (card, IBAN, phone, date)
Pattern masks (card, IBAN, phone, date)
One-time-code (OTP) input
One-time-code (OTP) input
Multiline & range
Auto-growing textareas with character counters, and single / dual-thumb range sliders.
Examples:
Textarea with counter & autoresize
Textarea with counter & autoresize
Slider & dual-thumb range
Slider & dual-thumb range
Selection
The forked ng-select engine themed with hub tokens, plus the button, radio and checkbox formats that render their own UI for the same value.
Examples:
Select & multiselect
Select & multiselect
Grouped options
Grouped options
Typeahead & search
Typeahead & search
Custom option & label templates
Custom option & label templates
Buttons, radio & checkbox formats
Buttons, radio & checkbox formats
Date picking
A from-scratch date / range picker on native Date + CDK Overlay, with bounds, keyboard navigation and full i18n.
Examples:
Datepicker & range
Datepicker & range
Containers & validation
`form[hubForm]`, `hub-fieldset` and `hub-legend` surface group-level and form-level (cross-field) errors automatically — the same way fields surface control errors.
Examples:
Containers & cross-field errors
Containers & cross-field errors
Key features
Recent changes
Version 21.0.0 - 6/13/26, 12:00 AM
added: Initial release: hub-input (10 formats), hub-textarea, hub-slider (single + range), hub-select (dropdown + buttons/radio/checkbox), hub-datepicker (single + range), hub-form/hub-fieldset/hub-legend containers.
added: Automatic validation-error display at control, group and form level, with provideHubForms() configuration.