sc-button
Usage
Button
Properties
Property | Attribute | Description | Type | Default |
|
| The button shape. |
|
|
|
| If prop exists, button will have an engraved-styled border |
|
|
|
| If |
|
|
|
| This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). |
|
|
|
| Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. |
|
|
|
| Icon only button |
|
|
|
| Specifies the relationship of the target object to the link object. The value is a space-separated list of link types. |
|
|
|
| Specifies where to display the linked URL. Only applies when an |
|
|
|
| The type of the button. |
|
|
Events
Event | Description | Type |
| Emitted when the button loses focus. |
|
| Emitted when the button is clicked. |
|
| Emitted when the button has focus. |
|
Slots
Slot | Description |
Content is placed between the named slots if provided without a slot. |
CSS Custom Properties
Name | Description |
| Background of the button |
| Button border radius |
| Bordered-style border radius |
| Bordered-style border width |
| Icon button size |
| Horizontal paddings |
| Vertical paddings |
| Text color with active prop |
| Button text color |
| Text color on hover |
| Set fixed width for button (default to auto) |
Dependencies
Used by
Graph
Inspired by Ionic, built with StencilJS ❤ from Sean Wu
Last updated