Skip to main content

removable_chip

Function removable_chip 

Source
pub fn removable_chip<'a, Message: Clone + 'a>(
    label: impl IntoFragment<'a>,
    on_remove: Message,
    scale: FontScale,
) -> Element<'a, Message>
Expand description

A token the user wrote and can take back — Files’ ext:rs in its search field: the label in the mono font, and a × that sends on_remove.

Neutral, not tinted like chip: a chip is something the system says about a row, in a state colour; this is something the person typed, and colouring it would claim a state it does not have. It takes the raised row surface — “a live control” in this suite’s three-level idiom — with the hairline the keycaps have.