View as Markdown

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.

    7 demos

  • 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.

    4 demos

  • 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.

    2 demos

  • 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.

    2 demos

  • MaskedField

    A text input with an input mask from @salmonui/inputs/masked-field, with raw and masked values, custom tokens and form submission.

    3 demos

  • NumberField

    A locale-aware numeric spin button from @salmonui/inputs/number-field, with Intl and Data Grid formats, stepping, clamping and form submission.

    2 demos

  • 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.

    3 demos

  • Switch

    An on/off switch from @salmonui/inputs/switch on a native checkbox with role="switch", a label, description and form submission.

    2 demos

  • 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.

    3 demos

  • OtpField

    One-time code input from @salmonui/inputs/otp-field - one native input drawn as cells, with SMS autofill, paste, masking, separators and onComplete.

    2 demos

  • 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.

    4 demos

  • 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.

    3 demos

  • 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.

    7 demos

  • 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.

    4 demos

  • 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.

    1 demo

  • 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.

    5 demos

  • 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.

    1 demo