text | | - | |
properties | |
autofocus | Indicates that the button should have input focus when the page loads. | false | |
disabled | Indicates that the button cannot be pressed or focused by the user. | false | |
fullWidth | Indicates the button's width should match its container. | false | |
iconCondensed | Applies only to icon-only buttons. If true, the button will have minimal padding. | false | |
large | Indicates the button has more padding. | false | |
onBackground | Indicates the button is on a AA compliant background. | false | |
pressed | Indicates this button is a toggle button and whether it is pressed or not. | 'undefined' | |
type | Indicates the default behavior of the button via the HTML5 attribute. | | |
variant | Indicates the variant of button. | 'primary' | |
icon | The icon to be shown as the content of the button. | | |
label | Indicates the aria label to apply to the button. | | |
name | Indicates the name when submitted with form data. | | |
value | Indicates the value associated with the name when submitted with form data. | | |
download | Indicates to save the linked URL instead of navigating to it. | | |
href | Indicates the URL that the hyperlink points to. | | |
hreflang | Indicates the language of the linked URL. | | |
ping | Indicates the URLs to ping. | | |
rel | Indicates the type of link. | | |
target | Indicates where to display the linked URL. | | |
elementDefinitions | | {
'pharos-icon': PharosIcon,
} | |
iconRight | The icon to be shown on the right side. | | |
iconLeft | The icon to be shown on the left side. | | |
_button | HTMLButtonElementHTMLAnchorElement | | |
_formButton | | | |
_form | | | |
buttonContent | | | |
attributes | |
icon-condensed | Applies only to icon-only buttons. If true, the button will have minimal padding. | false | |
icon-right | The icon to be shown on the right side. | | |
icon-left | The icon to be shown on the left side. | | |
on-background | Indicates the button is on a AA compliant background. | false | |
full-width | Indicates the button's width should match its container. | false | |