feat(button): support xl size

This commit is contained in:
Eric Y Liu 2021-05-02 15:43:29 -07:00
commit bb369db165
5 changed files with 13 additions and 4 deletions

View file

@ -13,7 +13,7 @@
/**
* Specify the size of button
* @type {"default" | "field" | "small"}
* @type {"default" | "field" | "small" | "xl"}
*/
export let size = "default";
@ -100,6 +100,7 @@
"bx--btn",
size === "field" && "bx--btn--field",
size === "small" && "bx--btn--sm",
size === "xl" && "bx--btn--xl",
kind && `bx--btn--${kind}`,
disabled && "bx--btn--disabled",
hasIconOnly && "bx--btn--icon-only",