The Quantity Selector: Enabling Precise Item Quantities

The Quantity component allows users to input numeric values representing quantities or amounts, often used in e-commerce and order forms.

Features

Discover the key features of the Quantity component.
Efficient Quantity Selection
Quantity input facilitates selecting desired quantities, enhancing user interaction. Users can easily input or adjust quantities, improving efficiency and convenience in the ordering process.
Visual Representation
Clear display ensures users easily identify and adjust quantities. With intuitive visual cues, users can quickly understand the quantity they are selecting, enhancing usability and reducing input errors.
Customizable Options
Tailor quantity input to match specific interface needs seamlessly. Customize quantity input fields to align with your brand's visual identity, ensuring a cohesive user experience and enhancing overall interface appeal.

Anatomy

Quantity - Button
The button comes with two distinct corner styles – "corner" which has sharp edges, and "round" which has fully rounded corners, providing designers with flexibility in terms of appearance.
Field
A designated area where users can input the quantity directly, if not utilizing the button control.
Help Label
This space can be utilized to provide users with additional information or guidance regarding the quantity selection.

Example Use Cases

E-commerce Platforms
In online shopping websites, the Quantity component allows users to specify the quantity of items they want to purchase. It is often associated with product listings, shopping carts, and checkout pages.
Order Forms
In form-based interfaces, the Quantity component enables users to specify quantities for different products or services they wish to order. It streamlines the ordering process and ensures accurate fulfillment of orders.
Inventory Management
Within inventory management systems, the Quantity component is used to track and update the quantities of available products or items in stock. It provides a convenient interface for warehouse operators and inventory managers to manage inventory levels.
Data Entry
In data entry forms and applications, the Quantity component can be utilized to input numerical values representing quantities, measurements, or other numeric data. It enhances the user experience by providing a dedicated input mechanism for numeric input.

Guidelines for Usage

When incorporating the Quantity component into a user interface, it is essential to adhere to the following guidelines for optimal usability and user experience:

Clear Labeling: Clearly label the Quantity component to indicate its purpose and what quantity it represents. Use descriptive labels such as "Quantity," "Qty," or "Number of Items" to help users understand the input field's intended use.

Increment and Decrement Buttons: Include intuitive increment and decrement buttons next to the input field to allow users to adjust the quantity easily. Ensure that these buttons are clearly visible and accessible, with sufficient spacing to prevent accidental clicks.

Validation: Implement validation mechanisms to ensure that users can only input valid numeric values into the Quantity component. Provide error messages or visual indicators to notify users of any input errors or invalid entries.

Range Limits: If applicable, specify minimum and maximum quantity limits to restrict the range of acceptable values. This helps prevent users from entering quantities that are outside the allowed range and ensures data integrity.

Variants

Corner
Suitable for more structured and formal designs, this variant features a sharp-cornered button.
Round
This variant features a button with rounded corners, lending a soft and modern aesthetic to the design.
product_quantity_01

Best Practices vs. Common Pitfalls

Do:
  • Use appropriate corner radius variants to maintain consistency with the overall design language of your product.

  • Ensure that the Field and Help Label are clearly visible and accessible to facilitate user interaction.

  • Leverage the flexibility of nested instance properties to create a seamless and cohesive user experience.

Don't:
  • Mix different corner variants within a single interface, as it can disrupt the visual harmony.

  • Overcrowd the component with excessive information or functionalities, keeping it user-centric and focused on its primary task of quantity selection.

  • Neglect the adaptability of the component sizes, which should be designed to maintain visual and functional coherence across varying screen sizes.

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.