Button
Button
Component demo
Interactive example
<ic-buttonid="my-button"variant="primary">Add to order</ic-button><ic-buttonvariant="secondary">View coffees</ic-button><ic-buttonvariant="tertiary">Find out more</ic-button><ic-buttonvariant="destructive">Cancel order</ic-button>
Button details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
The name of the control for the file input, which is submitted with the form data. |
ic-button-file-upload-input-${buttonIds++}
|
|
|
If |
|
|
|
The <form> element to associate the button with. |
|
|
|
The URL that processes the information submitted by the button. It overrides the action attribute of the button's form owner. Does nothing if there is no form owner. |
|
|
|
The way the submitted form data is encoded. |
|
|
|
The HTTP method used to submit the form. |
|
|
|
If |
|
|
|
The place to display the response from submitting the form. It overrides the target attribute of the button's form owner. |
|
|
|
If |
|
|
|
The URL that the link points to. This will render the button as an "a" tag. |
|
|
|
The human language of the linked URL. |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
How much of the referrer to send when following the link. |
|
|
|
The relationship of the linked URL as space-separated link types. |
|
|
|
The list of the files that have been selected by a user. |
|
|
|
The size of the button to be displayed. |
|
|
|
The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe). |
|
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
|
Setting to |
|
|
|
The position of the tooltip in relation to the button. |
|
|
|
If |
|
|
|
The type of the button. |
|
|
|
The variant of the button to be displayed. |
|
|
If |
|
If |
|
If |
|
If |
|
If |
|
If |
|
The name of the control for the file input, which is submitted with the form data. ic-button-file-upload-input-${buttonIds++}
|
|
If |
|
The <form> element to associate the button with. |
|
The URL that processes the information submitted by the button. It overrides the action attribute of the button's form owner. Does nothing if there is no form owner. |
|
The way the submitted form data is encoded. |
|
The HTTP method used to submit the form. |
|
If |
|
The place to display the response from submitting the form. It overrides the target attribute of the button's form owner. |
|
If |
|
The URL that the link points to. This will render the button as an "a" tag. |
|
The human language of the linked URL. |
|
If |
|
If |
|
If |
|
How much of the referrer to send when following the link. |
|
The relationship of the linked URL as space-separated link types. |
|
The list of the files that have been selected by a user. |
|
The size of the button to be displayed. |
|
|