Skip to content

Chip checked props is not working #954

Discussion options

You must be logged in to vote

You should use the value/defaultValue prop of <Chips /> and not the checked prop of <Chip />

<Chips
  color="violet"
  variant="filled"
  spacing="md"
  size="md"
  radius="sm"
  multiple
  defaultValue={["Streo Speaker"]}>
    <Chip value="Streo Speaker">Streo Speaker</Chip>
    <Chip value="3.5 mm Jack">3.5 mm Jack</Chip>
</Chips>

The checked prop of <Chip /> is used when you use it without <Chips /> see: https://mantine.dev/core/chips/#chip-component

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rtivital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants