Inputs demos

Every demo has a standalone page with its preview, source and notes.

46 demos

Components

  • Form validation

    Field rules in the Data Grid vocabulary, native constraints, an equalTo rule, an async rule and a blocked submit that focuses the first invalid field.

  • Validation rules and events

    Form validation with per-rule, validation.messages and localeText messages, native HTML constraints read as rules, rules swapped at runtime, error text from a function, onBeforeValidate and onValidate, and the native reportValidity and requestSubmit entry points.

  • Server errors and actions

    A Form driven by a React 19 action and useActionState - server errors shown as field errors until the value changes, blocking or non-blocking client validation, and a submit button reading useFormStatus.

  • One rule engine for forms and grids

    The same validation rule object on a Form field and a Data Grid column, compiled by the same compileValidationRules, and a timing of the built-in rules showing the per-keystroke cost and the shared empty result on success.

  • Fields in a form

    Uncontrolled text, masked, number, radio, checkbox, switch, range slider, rating and signature fields in a native form - names and values submitted through FormData, a required incomplete mask blocking the submit, and a form reset restoring every default.

  • Edit drawer with unsaved changes

    An order editor in a Drawer built on useFormState - Save and Discard appear only while the form is dirty, closing a dirty form asks through useConfirm, required labels carry a mark, and statuses show as status dot badges.

  • Inputs render cost

    Render counters around text, number and masked fields show that typing re-renders only the edited field, a Slider drag and a signature stroke run without React renders, and the QueryBuilder subpath loads as its own chunk only when used.

  • Field with a custom control

    A native select wrapped in Field with a label, a description, a required rule and an error placed next to the control.

  • Field states

    The shared field behavior on TextField, NumberField, Slider and Rating - placeholder, disabled, read-only, sizes, RTL, locale and localeText, adornments, clearing, className and style, ref methods, native focus events and controlled versus uncontrolled values.

  • Keyboard and screen readers

    Every Inputs control in one tab order with the role, name, value and description the focused element exposes to assistive technology - textbox, masked textbox, spin button, radio group, checkboxes, switch, two-thumb slider, rating and one-time code.

  • TextField basics

    A controlled clearable search field, start and end adornments, the three sizes and an auto-growing TextArea.

  • Native text attributes

    TextField and TextArea pass native attributes through - autoComplete tokens, maxLength with a live counter, and a multi-line TextArea sized with rows and cols.

  • Checkbox basics

    A checkbox with a mixed parent state, label placement and a horizontal CheckboxGroup bound to a string array.

  • Choice events

    Change events of RadioGroup, Radio, Checkbox and Switch with their details, radio labels before or after the control, and standalone radios grouped by a shared native name.

  • MaskedField basics

    A phone mask with raw and masked values, an upper-cased product code and a time mask with character classes.

  • Mask tokens and editing

    MaskedField custom tokens from a RegExp and from a string of allowed characters, details.masked and formatMasked, and the caret rules for typing, deleting and pasting.

  • NumberField basics

    A controlled quantity with a range and steppers, a German currency field and a percent preset.

  • Number precision and clamping

    NumberField decimals rounding the committed value, restrictDecimals refusing extra fraction digits while typing, clampBehavior blur or none, and details.formattedValue as the displayed text.

  • RadioGroup basics

    A controlled RadioGroup with a description, a disabled option and a horizontal layout.

  • Switch basics

    Switches with a description, a start label, a thumb icon and a controlled switch that vetoes a change.

  • Rating basics

    Interactive ratings with half precision, clearing, labels and a value bubble, plus a read-only exact average.

  • Rating icons and minimum

    Rating with a minimum value, highlightSelectedOnly, custom icon and emptyIcon, and items drawn by renderItem from their index and state.

  • OtpField basics

    A six-digit code with a separator and onComplete, and a masked PIN.

  • One-time code options

    OtpField with a controlled value the owner fills or clears, per-cell placeholders, an uppercase, lowercase or unchanged transform, and autoFocus when the code step appears.

  • Slider basics

    A filled single slider with a value label, a currency range with ticks and a thumb gap, discrete sizes and a vertical slider.

  • Slider ranges, ticks and limits

    Slider min, max and step set live, tick labels formatted with ticks.formatOptions or drawn by renderTick, value label text from valueLabel.format, and range limits with a fixed start thumb.

  • SignaturePad basics

    A signature pad with undo, redo, SVG export and the keyboard "type your name" mode.

  • Signature export and loading

    SignaturePad stroke widths and velocity, a background color and image, a controlled value with api.load, api.clear and api.isEmpty, PNG and JPEG data URLs and blobs with or without the background, and strokes redrawn on resize.

  • Query builder basics

    A QueryBuilder with typed fields, categories, a nested path, NOT groups, lock, clone and drag reorder, its summary view and filterRows over local rows.

  • Query builder fields

    Per-field operators, fixed values and defaults, display formats, number steps, validation rules, a custom value editor and rule layout, the tree field picker, editor props, operatorsFor and localized labels.

  • Query builder API and options

    A controlled QueryBuilder driven by its imperative API (addRules, addGroups, remove, getValue, setValue, getNode, reset, getValidValue, validate), with button, nesting, new-rule, field order, matchCase, read-only and group header options and a cancellable onBeforeChange.

  • Query builder converters

    The QueryBuilder value as parameterized SQL with toSql and as a MongoDB filter with toMongo.

  • Query builder SQL and MongoDB import

    Inline SQL from toSql, a custom operator evaluated by filterRows and serialized by the toSql and toMongo hooks, and queries loaded back with fromSql (literal, positional and named parameters) and fromMongo.

  • Query builder and the Data Grid filter builder

    One filter edited both in a QueryBuilder and in the Data Grid filter builder dialog, which share the internal QueryTree editor and the filter value shape.

  • Query builder with 200 rules

    A 200-rule QueryBuilder mounted on demand, with the mount time and a single-rule edit time measured and shown against the budgets.

  • Color picker basics

    A confirm-mode color popover with recent colors and no color, and an immediate palette picker with grouped swatches.

  • Color picker popover and events

    A controlled popover with a cancellable open, a cancellable mode switch, the alpha channel, value formats and the live versus committed value events in a log.

  • Color picker inline palette

    An inline ColorPicker in swatches mode with a configurable number of columns and custom swatches from renderSwatch.

  • Color picker parts

    ColorArea, hue and alpha ColorSlider, ColorField, ColorSwatch and ColorSwatchPicker composed by hand around one Color value.

  • Speech To Text basics

    A SpeechToTextButton that dictates into a TextArea in a chosen recognition language and reports start, stop and errors.

  • FileUpload basics

    A FileUpload without a transport inside a Form; the picked files submit with FormData, with accept, size and count validation.

  • FileUpload queue

    An upload transport with progress, two uploads at a time, cancel, retry and a manual Upload button when autoUpload is off.

  • FileUpload customization

    Preloaded files, a custom file row from renderFile, a custom drop zone from renderTrigger, renamed status and error texts with localeText, folder picking, the drop effect and showFileList.

  • FileUpload events and API

    The cancellable onBeforeFilesAdd, onBeforeUpload, onBeforeRemove and onBeforeClear events, upload success and error, api.clear and api.getFiles, formatFileSize and the keyboard and live-region behavior.

  • FileUpload with 500 files

    A controlled FileUpload that mounts a 500-file list on demand and shows the measured render time against the 50 ms budget.

  • Form Renderer basics

    A sign-up form rendered from a JSON Schema subset with a two-column layout, schema validation and typed submit data.