lenards/elm-ui-patternfly/4.0.2

PF6.TextInputGroup

PF6 TextInputGroup component

An input with optional prefix and/or suffix elements sharing a common border.

See: https://www.patternfly.org/components/text-input-group

Definition

Opaque TextInputGroup type

Constructor

{ value : String
, onChange : String -> msg
}

Construct a TextInputGroup

textInputGroup { value = model.search, onChange = SearchChanged }

Modifiers

withPrefix : Element msg -> TextInputGroup msg -> TextInputGroup msg

Add a prefix element (e.g. an icon or label) before the input

withSuffix : Element msg -> TextInputGroup msg -> TextInputGroup msg

Add a suffix element (e.g. a button or icon) after the input

Set placeholder text

withLabel : String -> TextInputGroup msg -> TextInputGroup msg

Set a visible label above the input group

Disable the input

Rendering

toMarkup : Theme -> TextInputGroup msg -> Element msg

Render the TextInputGroup as an Element msg