Skip to content

Chip component #110

Open
Open
@leonid

Description

@leonid

A Chip component is a UI element used to display information in a compact form, often with the ability to be removed or interacted with. Here are the key features a Chip component should have:

  1. Label: Display a text label to represent the chip.
  2. Removable: Option to include a close button to remove the chip.
  3. Custom Styling: Ability to customize the appearance through CSS classes or styles.
  4. Colors and Themes: Support for different colors and themes to represent various categories or statuses.
  5. Icons: Option to include icons alongside the label.
  6. Accessibility: Ensure the component is accessible with proper ARIA attributes.
  7. Events: Emit events for user interactions such as click or remove.
  8. Sizes: Support for different sizes (e.g., small, medium, large) to fit various UI designs.
  9. Interactive: Option to make the chip clickable to perform actions or navigate.
  10. Rounded Corners: Ability to have rounded corners for a modern look.
  11. Tooltips: Option to include a tooltip for additional information.
  12. Animations: Support for animations when the chip is added or removed.
  13. Group Support: Ability to group multiple chips together for related items.
  14. Responsive Design: Adaptable to different screen sizes and orientations.
  15. Loading State: Option to show a loading state when performing asynchronous actions.

These features ensure that the Chip component is versatile, user-friendly, and accessible.

Design

https://www.figma.com/design/6nFlVmwDwvGloglQHxyElh/Syntax-UI-3.0?node-id=876-2858&m=dev

image

To be implemented

  • Vue component with basic logic
  • Styles and extension points as css properties
  • Vitepress documentation: feature description, examples and api documentation
  • Unit tests for component and its composition
  • Storybook demos and documentation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions