Action chips offer actions related to primary content. They should appear dynamically and contextually in a UI.
An alternative to action chips are buttons, which should appear persistently and consistently.
import Material.Chip.Action as ActionChip
import Material.ChipSet.Action as ActionChipSet
type Msg
= ChipClicked String
main =
ActionChipSet.chipSet []
(ActionChip.chip
(ActionChip.config
|> ActionChip.setOnClick
(ChipClicked "Chip One")
)
"Chip One"
)
[ ActionChip.chip ActionChip.config "Chip Two"
]
Chip set view function