mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(button): add default value
This commit is contained in:
parent
1cfe4c1085
commit
6f536e9936
2 changed files with 2 additions and 0 deletions
|
@ -396,6 +396,7 @@ import { Button } from "carbon-components-svelte";
|
||||||
| size | <code>"default" | "field" | "small"</code> | "default" |
|
| size | <code>"default" | "field" | "small"</code> | "default" |
|
||||||
| hasIconOnly | <code>boolean</code> | false |
|
| hasIconOnly | <code>boolean</code> | false |
|
||||||
| icon | <code>typeof import("carbon-icons-svelte/lib/Add16").default</code> | -- |
|
| icon | <code>typeof import("carbon-icons-svelte/lib/Add16").default</code> | -- |
|
||||||
|
| iconPosition | <code>"left" | "right"</code> | "right" |
|
||||||
| iconDescription | <code>string</code> | -- |
|
| iconDescription | <code>string</code> | -- |
|
||||||
| tooltipAlignment | <code>"start" | "center" | "end"</code> | -- |
|
| tooltipAlignment | <code>"start" | "center" | "end"</code> | -- |
|
||||||
| tooltipPosition | <code>"top" | "right" | "bottom" | "left"</code> | -- |
|
| tooltipPosition | <code>"top" | "right" | "bottom" | "left"</code> | -- |
|
||||||
|
|
1
types/index.d.ts
vendored
1
types/index.d.ts
vendored
|
@ -147,6 +147,7 @@ export class Button extends CarbonSvelteComponent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the position of the icon
|
* Specify the position of the icon
|
||||||
|
* @default "right"
|
||||||
*/
|
*/
|
||||||
iconPosition?: "left" | "right";
|
iconPosition?: "left" | "right";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue