Button
Installation
Usage
rh-button
Slot Name | Description |
---|---|
icon |
Contains the button's icon or state indicator, e.g. a spinner. |
|
Contains button text |
DOM Property | Description | Type | Default |
---|---|---|---|
disabled |
Disables the button |
|
|
type |
|
|
|
label |
Accessible name for the button, use when the button does not have slotted text |
|
|
value |
Form value for the button |
|
|
name |
Form name for the button |
|
|
icon |
Shorthand for the |
|
|
variant |
Changes the style of the button.
|
|
|
danger |
Use danger buttons for actions a user can take that are potentially destructive or difficult/impossible to undo, like deleting or removing user data. |
|
|
Method Name | Description |
---|---|
focus() |
None
Part Name | Description |
---|---|
button |
Internal button element |
icon |
Container for the icon slot |
None
None
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.