File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11<template >
22 <Tooltip :text =" tooltip" :disabled =" !tooltip?.length" >
3- <component
3+ <button
44 v-bind =" $attrs"
5- :is =" as"
65 :class =" buttonClasses"
76 @click =" handleClick"
87 :disabled =" isDisabled"
6059 :class =" slotClasses"
6160 />
6261 </slot >
63- </component >
62+ </button >
6463 </Tooltip >
6564</template >
66-
6765<script lang="ts" setup>
6866import { computed , useSlots , ref } from ' vue'
6967import FeatherIcon from ' ../FeatherIcon.vue'
@@ -75,7 +73,6 @@ import Tooltip from '../Tooltip/Tooltip.vue'
7573defineOptions ({ inheritAttrs: false })
7674
7775const props = withDefaults (defineProps <ButtonProps >(), {
78- as: ' button' ,
7976 theme: ' gray' ,
8077 size: ' sm' ,
8178 variant: ' subtle' ,
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ type Size = 'sm' | 'md' | 'md' | 'lg' | 'xl' | '2xl'
66type Variant = 'solid' | 'subtle' | 'outline' | 'ghost'
77
88export interface ButtonProps {
9- /** The element or component this should render as */
10- as ?: string
11-
129 /** Visual color theme of the button */
1310 theme ?: Theme
1411
You can’t perform that action at this time.
0 commit comments