The Number Input: Capturing Numeric Values with Precision

The Number component provides a field for users to enter numerical values, with optional increment/decrement controls for adjusting the input.

Features

Discover the key features of the Number component.
Numeric Entry
Number facilitates numeric data entry, enhancing user input efficiency. Users can easily input numerical values, improving data accuracy and interaction speed
Input Validation
Ensures accurate data input with built-in validation features. Users receive prompt feedback on input errors, enhancing data reliability and user experience.
Customizable Formatting
Tailor input formats to match specific requirements seamlessly. Users can customize input styles and formats, ensuring flexibility and alignment with interface needs.

Anatomy

Field Label
A descriptive label that elucidates the purpose or the expected input of the component.
Input Field
A guide text that indicates the expected value or format to be entered in the field.
Addition Icon
A visual cue to increase the numeric value incrementally.
Subtraction Icon
A visual cue to decrease the numeric value incrementally.
Help Description Label
A supplementary label that provides additional guidance or information to assist users in interacting with the component.

Example Use Cases

Forms
Incorporating the Number component into forms where users need to input numerical data, such as age, quantity, price, or measurements.
Data Entry
Allowing users to input numeric values when performing tasks like setting preferences, configuring settings, or entering financial data.
Calculator Interfaces
Integrating the Number component into calculator interfaces or applications that require users to perform calculations or enter numerical expressions.
Quantity Selection
Providing users with a means to specify quantities of items when shopping online or making reservations, allowing them to easily adjust quantities using the input field.
Data Visualization
Enabling users to interact with visualizations or charts by inputting specific numerical values to filter or manipulate the data being displayed.

Guidelines for Usage

When incorporating the Number component into interface designs, it's important to follow these guidelines to ensure usability and effectiveness:

Clear Labeling: Clearly label the Number field to indicate the type of numerical data expected from users, providing descriptive placeholders or labels to guide input.

Input Validation: Implement input validation to restrict user input to valid numerical values and enforce any constraints or formatting requirements, such as minimum and maximum values, decimal precision, or allowed characters.

Increment and Decrement Buttons: Consider adding buttons or controls adjacent to the input field to allow users to increment or decrement the numeric value, providing an alternative input method and improving accessibility for users with limited mobility or touchscreens.

Error Handling: Provide feedback to users in case of invalid input or errors, displaying error messages or visual cues to indicate validation failures and guide users towards correct input.

Accessibility Considerations: Ensure that the Number component meets accessibility standards by providing proper labeling, keyboard navigation support, and compatibility with assistive technologies for users with disabilities.

Responsive Design: Design the Number component to be responsive and adaptable to different screen sizes and devices, ensuring optimal usability across desktop, tablet, and mobile platforms.

Sizes

.input-large
A larger size for the component, ensuring it stands out and is easily noticeable, often used for primary actions or important interactions to draw user attention.
.input-extra-large
The largest size for the component, making it highly prominent and easy to interact with, often used in high-impact areas or for very important actions.
product_number_01

States

.input :enabled
The default state where the component is fully interactive and ready for user actions. It appears normal and invites interaction.
.input :hover
The state when a user places their cursor over the component, indicating it is ready for interaction and often visually changes to show responsiveness.
.input :focus
The state showing that the component is currently selected or active, highlighted for user awareness and accessibility purposes, often with a border or shadow.
.input: success
The state indicating a successful action or positive result, often highlighted with a specific color like green or an icon like a checkmark to reinforce the success message.
.input: error
The state indicating a problem or error, usually highlighted with specific colors like red and icons such as an error symbol to signal an issue that needs resolution.
.input: *disabled
The state where the component is visible but non-interactive, indicating it is not available for use. It often appears faded or greyed out to signal its inactivity.
product_number_02

Best Practices vs. Common Pitfalls

Do:
  • Do use clear and recognizable icons for addition and subtraction to prevent user confusion.

  • Do ensure that the component is designed to accommodate various numerical formats, including decimal values.

  • Do provide clear error messages to guide users in correcting their input efficiently.

Don't:
  • Don't complicate the interface with too many features, keep it simple and intuitive.

  • Don't ignore the accessibility guidelines; ensure it is accessible to all users, including those with disabilities.

  • Don't neglect the responsive design, make sure the component is adaptable to different screen sizes and platforms.

Feedback and support

Encountered an issue or have a question about the design system? Your feedback is invaluable to us. Don't hesitate to contact us. Feel free to offer suggestions or improvements; it's all part of our commitment to continuous feedback and support.