Salmon UI Inputs documentation
Every page below embeds live demos; each demo also has a standalone route.
Components
- Form
Form validation with @salmonui/inputs/form - one rule vocabulary with the Data Grid, native constraint validation, server errors and React 19 actions.
- Field
The behavior every Salmon input shares - labels, descriptions, errors, sizes, adornments, clearing, form participation, SSR and accessibility - and the public Field wrapper for custom controls.
- TextField and TextArea
Single and multi-line text inputs from @salmonui/inputs/text-field, on native input and textarea elements with labels, validation, adornments and a clear button.
- Checkbox and CheckboxGroup
Native checkboxes from @salmonui/inputs/checkbox with a mixed state, label placement, form submission and a CheckboxGroup whose value is a string array.
- MaskedField
A text input with an input mask from @salmonui/inputs/masked-field, with raw and masked values, custom tokens and form submission.
- NumberField
A locale-aware numeric spin button from @salmonui/inputs/number-field, with Intl and Data Grid formats, stepping, clamping and form submission.
- RadioGroup and Radio
Native radio groups from @salmonui/inputs/radio-group in a fieldset with a legend, description, errors, orientation and the browser's own arrow-key selection.
- Switch
An on/off switch from @salmonui/inputs/switch on a native checkbox with role="switch", a label, description and form submission.
- Rating
Star ratings from @salmonui/inputs/rating on native radios, with half precision, read-only quarter and exact display, clearing, labels, custom icons, a value bubble and RTL mirroring.
- OtpField
One-time code input from @salmonui/inputs/otp-field - one native input drawn as cells, with SMS autofill, paste, masking, separators and onComplete.
- Slider
Single and range sliders from @salmonui/inputs/slider on visually hidden native range inputs, with ticks, value labels, limits, discrete values, vertical orientation, RTL mirroring and zero React renders while dragging.
- SignaturePad
Signature capture from @salmonui/inputs/signature-pad on a Canvas 2D with Pointer Events, pressure and velocity widths, undo / redo, PNG / JPEG / SVG output, a keyboard "type your name" mode and form submission.
- QueryBuilder
A nested AND/OR/NOT rule editor from @salmonui/query-builder, sharing its tree with the Data Grid filter builder, with SQL and MongoDB converters.
- Color Picker
Color picker from @salmonui/inputs/color-picker with a saturation and brightness area, hue and alpha sliders, a hex field, a swatch palette, recent colors, Apply / Cancel and parseColor, every part usable alone.
- Speech To Text
Speech recognition from @salmonui/inputs/speech-to-text, a useSpeechRecognition hook and a SpeechToTextButton toggle over the Web Speech API or a replaceable recognizer.
- FileUpload
File picker with a drop zone, validation, a file list and an optional upload queue from @salmonui/inputs/file-upload, on a native file input so files submit with the form.
- Form Renderer
A form rendered from a JSON Schema subset and a UI schema with @salmonui/inputs/form-renderer, using the Salmon fields, Form validation and a typed onSubmit.