mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 04:13:02 +00:00
feat(button): support xl size
This commit is contained in:
parent
3620f94f97
commit
bb369db165
5 changed files with 13 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue