Formerly cdevienne/elm-orus-ui. Search finds this package by either name.
A button creation API
A button type
A button action
Create a button with the given label
A text and an action (onClick, link or disabled) must be set before it can be rendered
The text is mandatory for icon buttons too and will be used as a 'aria-label' property.
By default, the button is of the 'Elevated' type, and its color is 'Primary'
Set the button icon
Can only be called once
A button must have one and only one action that can be set with one of the following functions.
Set the button 'onClick' handler
Set the button as 'disabled'
Instead of a direct action (or disabled), a button can be a link
Set the button as a link to the given URL
Set the button as a link opening in a new tab
A link to download a file
A link to download a file, but you can specify the filename.
Set the button type to 'Elevated' (default)
Set the button type to 'Filled'
Set the button type to 'Outlined'
Set the button type to 'TextButton'
Set the button type to 'SmallFAB'
Set the button type to 'MediumFAB'
Set the button type to 'LargeFAB'
Set the button type to 'ExtendedFAB'
Set the button type to 'IconButton'
Set the button type to 'FilledIconButton'
Set the button type to 'OutlinedIconButton'
A button