✨ feat: iconOnly property supported
This commit is contained in:
parent
0687b0395c
commit
e8921723ba
|
@ -11,6 +11,7 @@ const props = withDefaults(defineProps<IVButton>(), {
|
||||||
secondary: false,
|
secondary: false,
|
||||||
tertiary: false,
|
tertiary: false,
|
||||||
iconRight: false,
|
iconRight: false,
|
||||||
|
iconOnly: false,
|
||||||
noOutline: false,
|
noOutline: false,
|
||||||
danger: false,
|
danger: false,
|
||||||
size: 'md',
|
size: 'md',
|
||||||
|
@ -58,7 +59,7 @@ const font = computed(() => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Button
|
<Button
|
||||||
:label="props.label"
|
:label="props.iconOnly ? undefined : props.label"
|
||||||
:variant="variant"
|
:variant="variant"
|
||||||
:severity="severity"
|
:severity="severity"
|
||||||
:icon="props.icon"
|
:icon="props.icon"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user