The Input Selection pattern is a form input component that allows users to select one or more records from a large dataset via a dedicated selection modal. It acts as a structured alternative to a standard dropdown, enabling users to search, browse, and confirm selections from paginated lists of records — without leaving the current form context.
Standard dropdowns are limited to displaying a single attribute per option (e.g. just a name or just an email). When users need to identify the right record from a large dataset, a single line of context is often not enough — they may need to see both the name and email, or a description, to make a confident selection. Dropdowns also do not scale well with large datasets and offer no built-in search capability. The modal-based Input Selection pattern solves this by presenting records in a structured table with multiple columns of context (e.g. Name + Email, or Name + Description), combined with a dedicated search input — allowing users to quickly find and confidently select the right record.

Component | Spec |
|---|---|
Input Trigger | A text input field with a "..." button that opens the selection modal. |
Empty State | Displays italic placeholder text "Select items" when no selection has been made. |
Selected State | Displays the selected value(s) inside the input field. A clear "×" button appears to remove all selections. |
Loading State | Skeleton/shimmer placeholders appear inside the field while data is being fetched. |
Selection Modal | A modal with a search bar, sortable table or list, pagination, and Cancel / Select actions. |
# | Element | Description |
|---|---|---|
1 | Field Label | Names the type of record being selected (e.g. "User", "Tags"). Indicates optional fields with "(Optional)" suffix. |
2 | Input Field | Displays current selection state — empty placeholder, selected value(s), or loading skeleton. Not directly typeable. |
3 | "..." Trigger Button | Right-aligned button inside the input field that opens the selection modal. Always visible. |
4 | Clear Button (×) | Appears inside the input field only after a selection is made. Clears all selected values in one click. |
5 | Selection Modal | A modal overlay (width 70%) containing search, a record list or table, pagination, and action buttons (Cancel / Select). |
6 | Search Input (Modal) | Allows users to filter the record list by name, email, or other relevant attributes. |
7 | Record List / Table (Modal) | Displays available records with multiple columns of context (e.g. Name + Email). Single select uses a clickable row; multi-select uses checkboxes. |
8 | Pagination Footer (Modal) | Shows current range and total count (e.g. "1–35 of 35"). Includes page number navigation for large datasets. |
9 | Modal Action Buttons | Cancel dismisses the modal without changes. Select confirms the selection and updates the input field. |
Clicking the "..." button always opens the selection modal, regardless of current selection state.
The input field is not directly editable — users must interact via the modal to change selections.
The "×" clear button appears only when one or more items are selected; it is hidden in the empty state.
Clicking "×" clears all selections and returns the field to its empty/placeholder state.
The selection modal overlays the current page without navigating away.
Search within the modal filters the record list in real time or on input submission.
The Select button in the modal confirms the selection and closes the modal.
Cancel dismisses the modal without applying any changes.
Loading skeleton is shown inside the input field while the associated data is being fetched.
Common Variants
Single Select with Modal
Multi-Select with Modal
Input field uses a rounded border with consistent corner radius
Placeholder text is italic and in a muted/grey colour: "Select items"
The "..." trigger button is right-aligned inside the field at all times
The "×" clear button must be right-aligned inside the field, to the left of the "..." button, and visible only when a selection exists
The input field should never be directly editable by the user
Single Select: Display selected value as plain text inside the field — chip/tag UI is not required and should not be used
Multi-Select: Display selected values as chips/tags inside the field — chips are appropriate here since multiple values must be visually distinguishable
Chips should use a neutral background with clear label text and should not include individual remove icons per chip (use the global "×" instead)
Show 2–3 skeleton/shimmer placeholder blocks inside the input field while data loads
Skeleton blocks should be rounded and match the approximate size of chip elements
Never show a spinner inside the input field — use skeleton placeholders only
Modal title should clearly name the action: "Select [Object]" for single select, "Select [Objects]" for multi-select
Search input should span the full width of the modal with relevant placeholder text (e.g. "Search Name or Email", "Search Tags")
Table columns use Title Case headers; name column is sortable by default
The Select button is disabled until a selection is made (single select); it may remain active in multi-select
Pagination footer is always visible at the bottom of the record list
Issue | Description |
|---|---|
Chip UI on Single Select | Current implementation wraps the selected value in a chip/tag component for single select fields. This is unnecessary — plain text is sufficient and cleaner. Chip should be removed for single-select inputs. |
Implementation & Developer Notes:
Render the input field as a read-only text box with a right-aligned "..." trigger button. Do not allow direct keyboard input into the field. Once a selection is made, display plain text for single-select (no chip wrapper) and chip components for multi-select. Always render a "×" clear button to the right of the selected value(s), positioned to the left of the "..." trigger. Show skeleton placeholder blocks inside the field during data fetch — never a spinner. The selection modal must be implemented as a side panel overlay; it should not navigate away from the current page.
Component | Spec |
|---|---|
Input Display | Plain text for the selected value — no chip/tag wrapper. |
Clear Button | "×" appears right-aligned inside the field after selection. Clears the single selected value. |
Modal Width | Medium |
Modal Title | "Select [Object Name]" (e.g. "Select User") |
Modal Selection | Single row click to select. No checkboxes. Select button is disabled until a row is chosen. |
Modal Table | Multi-column table (e.g. Name + Email). Name column sortable. Rows are clickable. |
Pagination | Simple count display: "1–35 of 35". No page number navigation needed for smaller datasets. |
Implementation & Developer Notes:
Configure the input field to accept only a single value. On selection, render the value as plain text inside the field — do not wrap it in a chip or tag component. Show the "×" clear button immediately after a value is set. In the modal, implement single-row selection behaviour (radio-like): clicking a row highlights it and enables the Select button. Disable checkboxes. Close the modal and populate the field on Select; dismiss without change on Cancel.
Empty state: Single select input

Modal: Single select modal — "Select Product" with search, Name/Product code, and pagination

Selected state: Single select input — selected state (plain text, "×" clear button)

Loading state: Single-select input — skeleton shimmer placeholders

Component | Spec |
|---|---|
Input Display | Selected values displayed as chips/tags inside the field — multiple values must be visually distinguishable. |
Clear Button | A single global "×" appears right-aligned inside the field to clear all selected values at once. |
Modal Width | 70% |
Modal Title | "Select [Object Name]" (e.g. "Select Tags") |
Modal Selection | Checkbox-based multi-row selection. A header checkbox allows select-all. Select button remains active. |
Modal Table | Single-column list (e.g. Tag Name) with checkboxes. Header checkbox for bulk select. |
Pagination | Numbered page navigation (e.g. "1–50 of 546", pages 1 2 3 4 … 11) for large datasets. |
Loading State | 2–3 skeleton shimmer blocks shown inside the input field while data is fetched. |
Implementation & Developer Notes:
Configure the input field to accept multiple values. Render each selected value as a chip component inside the field. Do not add individual "×" remove icons per chip — use a single global clear button ("×") to the right of all chips. Show skeleton placeholders (2–3 shimmer blocks) inside the field during data loading. In the modal, implement checkbox-based multi-selection with a header select-all checkbox. The Select button should remain active (not disabled). On Select, update the field with all checked values as chips; on Cancel, dismiss without changes. Use numbered pagination for datasets exceeding 50 records.
Empty state: Multi-select input

Modal: Multi-select modal — "Select Tags" with search, checkbox list, select-all header, and numbered pagination

Selected state: Multi-select input — selected state (chips, global "×" clear button)

Loading state: Multi-select input — skeleton shimmer placeholders
