Chip
Use our Chip component to represent tags, categories, or simple selections
Last updated
Use our Chip component to represent tags, categories, or simple selections
Last updated
The Chip component is a versatile UI element that can display various types of information in a compact, interactive format. It's commonly used to represent tags, categories, or simple selections. This documentation provides an overview of the Chip component and its different variants, along with usage examples.
The anatomy of a Chip component within Plus UI is comprised of several integral elements that collectively define its functionality and appearance. It includes the chip label, container, and optional prefix/suffix icons. These elements collectively create a versatile component for displaying essential information or context in a visually appealing manner. Customizable properties further enhance the Chip component's user interaction and engagement capabilities within your application.
Our chip component offers consistent design properties across our system and component library, giving you the creative freedom to customize and match your design preferences. With customizable variants and a unified structure, you can effortlessly create chips that seamlessly integrate with your application's design.
Filled
Default
Default
Small
True
True
Outlined
Hovered
Info
Medium
False
False
Pressed
Success
Large
Warning
Error
Filled chip type provides a simple, solid-colored chip without any specific styling.
Outlined chip type features a transparent background with a border. It's suitable for scenarios where you want a chip that doesn't stand out too much.
Default chip represents the normal state of a chip, with no specific interactions or changes.
Hover chip represents a chip that the user's mouse pointer is currently hovering over. It can provide visual feedback to indicate interactivity.
Press chip signifies a chip in its activated state, typically triggered when the user clicks or presses it. This state communicates user interaction and engagement with the chip's content or functionality.
Disabled chip
The Chip component can display different statuses using predefined colors.
Default chip displays the information without any specific status color.
In progress chip is typically used to indicate that a task or process is currently ongoing. It uses a distinct color to grab the user's attention.
Success chip is used to signify that a task or action has been completed successfully. It typically uses a green color.
Warning chip is used to highlight potential issues or warnings. It typically uses a yellow or orange color.
Error chip is used to indicate errors or critical issues. It typically uses a red color to alert the user.
Chips come in different sizes to accommodate various design needs.
Small
Medium (Default)
Large
The "invert" property for the chip component is a versatile attribute that empowers developers to easily toggle between the default and inverted appearance of the chip. This feature allows for greater design flexibility, enabling you to create eye-catching interfaces and customize the chip's look to match your application's style. Whether you're highlighting specific selections or adding emphasis to certain chips, the "invert" property provides a straightforward way to achieve a dynamic and engaging user interface.
The placement and spacing of chip elements significantly impact the overall aesthetics and usability of your design. Well-considered spacing between chips, as well as their arrangement, enhances the user experience, making it easier for users to interact with and comprehend the content. Careful spacing and layout contribute to an intuitive and engaging interface, ensuring that your chip components serve their purpose effectively.
Offering light and dark mode options for chip components in user interfaces enhances user experience by catering to their comfort, preference, and accessibility. This design approach aligns with current trends and supports a range of user needs and choices. Additionally, it contributes to energy efficiency and a more sustainable user interaction.
Ensuring that chip components meet all accessibility criteria is of paramount importance. Accessible chips enable a wide range of users, including those with disabilities, to interact with the interface effectively. By adhering to these criteria, the chips provide equal access to information and functionality, promoting inclusivity and a positive user experience for everyone.
ARIA Hidden Elements
Ensures aria-hidden elements are not focusable nor contain focusable elements
IDs of Active Elements
Ensures every id attribute value of active elements is unique
ID Elements
Ensures every id attribute value is unique
Tabindex Attributes
Ensures tabindex attribute values are not greater than 0
Color Contrast
Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds
To learn more about Plus UI's accessibility criteria, please visit Accessibility.
size
Chip size
string
sm, md, lg
md
kind
Chip kind
string
filled, outline
filled
status
Chip status
string
success, error, warning
-
default
Chip content