Actions
Chip
A small removable token: a filter that is on, an email in a list of invites.
Actions
A small removable token: a filter that is on, an email in a list of invites.
Change the props on the right. The chip and its code follow.
import { Chip } from 'omuk-ui/chip';
<Chip onRemove={() => remove(email)} removeLabel="Remove ada@example.com">ada@example.com</Chip>With onRemove, the chip draws a remove button at its end. Give each one a removeLabel that names what it removes.
Invites to send (4)
Without onRemove, a chip is a plain token: a tag on a record that the person cannot change here.
And every prop of a <span>.