Icon buttons allow users to take actions, and make choices, with a single tap.
If you are looking for a button that has an icon as well as text, refer to Button.
import Material.IconButton
exposing
( iconButton
, iconButtonConfig
)
type Msg
= IconButtonClicked
main =
iconButton
{ iconButtonConfig
| onClick = Just IconButtonClicked
}
"favorite"Default icon button configuration
Icon button configuration
To disable a icon button, set its disabled configuration field to True. Disabled icon buttons cannot be interacted with and have no visual interaction effect.
iconButton
{ iconButtonConfig | disabled = True }
"favorite"To set the arial-label attribute of a icon button, set its label
configuration field to a String.
iconButton
{ iconButtonConfig | label = "Add to favorites" }
"favorite"TODO
Icon button view function