# Chip URL: /components/chip Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/chip.mdx A component that displays a value the user selects or enters. ## Anatomy ![Anatomy image of Chip. Consists of Container, Label, Prefix Item, and Suffix Item.]() Chip consists of a Container and a Label, and can have a Prefix Item and a Suffix Item. ## Properties ### Variant ![Chip Variant Property - Solid, Outline Strong, Outline Weak]() Chip has three style variants: Solid, Outline Strong, and Outline Weak. Each can show a selected state. ### Size ![Chip Size Property - Large, Medium, Small]() Chip has three sizes: Large, Medium, and Small. ### State ![Chip State - Enabled, Pressed, Disabled]() Chip has Enabled, Pressed, and Disabled states depending on whether it is selected. ### Prefix Property ![Chip Prefix Property - Icon, Avatar, Image]() The Prefix Slot is positioned to the left of the Label. Prefix provides three preset types: Icon, Avatar, and Image. **Since the left margin varies depending on the element placed in the Prefix Slot, using a Custom Slot is not recommended.** ### Suffix Property ![Chip Suffix Property - Icon, Custom]() The Suffix Slot is positioned to the right of the Label. Suffix provides the Icon type as a preset. If you want to use an element other than the included type, change it via Custom Child Swap. ## Guidelines ### Uses of Chip ![Chip, Chip Group]() ![Filter Bar]() ![Tabs - Chip Variant]() Chip can be used standalone to display a value the user selects or enters, and when using multiple Chips together, use the Chip Group template. Chip Group can be used for suggested items (Suggestion) or single/multiple selection (Selection). When used as a Filter role controlling the application and removal of conditions in a content list, use the Filter Bar template. When using Chip as a Tab, use the Chip Variant of the [Tabs](/components/tabs) component. ### Chip Group Layout ![Chip Group Layout - Scrollable and Overflow layouts]() Chip Group can be displayed in two ways: Scrollable Layout, which displays on a single line, and Overflow Layout, which displays all Chips. ### Filter Bar ![Example of using Filter Bar - filter inactive and filter active]() When using Chip as a Filter role controlling the application and removal of conditions in a content list, use the Filter Bar template. The Filter Bar includes behavior where a Clear button appears to deselect the filter when an active filter exists. ### Using Chip as Selection ![Example of using Chip as Selection - multiple selection and single selection]() Chip Group can be used for single or multiple selection actions such as filter items or input forms. Since multiple Selected values may be shown on screen, using the lower-prominence Outline Weak style is recommended. ### Using Chip as Suggestion ![Example of using Chip as Suggestion - chat suggested messages, suggested search terms]() Chip can be used for items suggested to the user. Choose the style based on the combination with other elements on the screen. ### Using Chip as Input ![Example of using Chip as Input - includes Remove button in Suffix]() Content entered by the user can be displayed in a Chip. In this case, use a Remove button in the Suffix Slot that can remove the Chip. ## Specification Component spec (JSON): /rootage/components/chip.json