Skip to content

Chip Component

Stanka Bozalieva edited this page May 21, 2018 · 28 revisions

Chip Specification

Contents

  1. Overview
  2. User Stories
  3. Functionality
  4. ARIA support
  5. Assumptions and Limitations
  6. References

Objectives

Provide compact elements that represent an input, attribute, or action.

Elaborate more on the multi-facetted use cases

As a developer, I want to:

  • implement a chip (1)
  • Implement a chip group, so that I can implement chips in it.
  • to be able to change background of the chip, so that it would be consistent with the rest of the application.
  • have a (3)label in the chip, so that the chip can exit as a separate entity.
  • To be able to add (2) avatar, logo or an icon, so that I can give further visual clues about the chip.
  • To able to add a “Remove” icon, so that the user will be able to remove the chip.
  • set min and max size of the chip W/H?

As an end user, I want to:

  • Story 1: As an end user, I want…, so that I can…

Acceptance criteria

Must-have before we can consider the feature a sprint candidate

...

Describe behavior, design, look and feel of the implemented feature. Always include visual mock-up

3.1. End User Experience A chip can be:

  • selected and deselected by the user.
  • moved within it’s group, using just hold and drag.
  • removed from the group using a remove icon.

3.2. Developer Experience

3.3. Globalization/Localization

Describe any special localization requirements such as the number of localizable strings, regional formats

3.4. User Interface

screen shot 2018-05-21 at 14 02 36 screen shot 2018-05-21 at 14 01 44 screen shot 2018-05-21 at 10 05 44

3.5. Keyboard Navigation

Users can move through the chips using the arrow keys and select/deselect them with the space. Chips also gain focus when clicked, ensuring keyboard navigation starts at the appropriate chip.

3.6. API

Options

Name Description Type Default value Valid values

Methods

Name Description Return type Parameters

Events

Name Description Cancelable Parameters

A chip-list behaves as a role="listbox", with each chip being a role="option". The chip input should have a placeholder or be given a meaningful label via aria-label or aria-labelledby.

Assumptions Limitation Notes

https://material.angular.io/components/chips/examples https://material-components.github.io/material-components-web-catalog/#/component/chips https://material.io/design/components/chips.html#input-chips https://docs.flutter.io/flutter/material/Chip-class.html

Clone this wiki locally