mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
098724dd89
commit
89ec5fbf41
4 changed files with 9 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
};
|
||||
|
||||
const iconOnlyProps = {
|
||||
hasIconOnly: true,
|
||||
kind,
|
||||
disabled,
|
||||
size,
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
export let href = undefined;
|
||||
export let icon = undefined;
|
||||
export let iconDescription = undefined;
|
||||
export let hasIconOnly = false;
|
||||
export let kind = 'primary';
|
||||
export let size = 'default';
|
||||
export let style = undefined;
|
||||
|
@ -24,7 +25,6 @@
|
|||
$: if (ctx && buttonRef) {
|
||||
ctx.declareRef(buttonRef);
|
||||
}
|
||||
$: hasIconOnly = !!icon && !$$props.$$slots;
|
||||
$: buttonProps = {
|
||||
role: 'button',
|
||||
type: href && !disabled ? undefined : type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue