From 6f536e99360cf70d3665233b4f32535d6463d64a Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 4 Oct 2020 20:33:17 +0200 Subject: [PATCH] fix(button): add default value --- COMPONENT_INDEX.md | 1 + types/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index baf6c648..c4540cec 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -396,6 +396,7 @@ import { Button } from "carbon-components-svelte"; | size | "default" | "field" | "small" | "default" | | hasIconOnly | boolean | false | | icon | typeof import("carbon-icons-svelte/lib/Add16").default | -- | +| iconPosition | "left" | "right" | "right" | | iconDescription | string | -- | | tooltipAlignment | "start" | "center" | "end" | -- | | tooltipPosition | "top" | "right" | "bottom" | "left" | -- | diff --git a/types/index.d.ts b/types/index.d.ts index c7662764..e3e57207 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -147,6 +147,7 @@ export class Button extends CarbonSvelteComponent { /** * Specify the position of the icon + * @default "right" */ iconPosition?: "left" | "right";