lenards / elm-ui-patternfly / PF4.Chip

A component for displaying items that are involved in selection or filtering out of an overall group.

See also, PF4.ChipGroup

Definition


type Chip msg

Opaque Chip element that can produce msg messages

Constructor function

chip : String -> Chip msg

Constructs a Chip from the text

Configuration functions

withCloseMsg : msg -> Chip msg -> Chip msg

Configures what msg is produced onClick by Chip

withForeground : ( Basics.Int, Basics.Int, Basics.Int ) -> Chip msg -> Chip msg

Configures the foreground color, in RGB

Rendering element

toMarkup : Chip msg -> Element msg

Given the custom type representation, renders as an Element msg.