Select component.
Opaque type for the component's state.
Initialize a default and empty state.
Get the data from the State.
Set the data in the State.
Opaque type for the component's configuration.
Initialize the component's configuration.
config : Select.Config User Msg
config =
Select.config
(String.fromInt << .id)
(\x -> x.firstname ++ " " ++ x.lastname)
OnSelectState
|> Select.withPlaceholder "Select simple"
|> Select.withCheck TrueAdd custom class to the component.
Highlight if the value is not valid.
Customize the search input placeholder.
Component's view.
Component's subscriptions.
ID of a element.