This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 5
5
HTMLChakraProps ,
6
6
ThemingProps ,
7
7
useStyleConfig ,
8
+ ComponentWithProps ,
9
+ DeepPartial ,
8
10
} from '@chakra-ui/vue-system'
9
11
import { filterUndefined } from '@chakra-ui/utils'
10
12
import { vueThemingProps } from '@chakra-ui/vue-utils'
@@ -13,13 +15,7 @@ export interface BadgeProps
13
15
extends HTMLChakraProps < 'span' > ,
14
16
ThemingProps < 'Badge' > { }
15
17
16
- /**
17
- * Vue component used to display notifications, messages, or
18
- * statuses in different shapes and sizes.
19
- *
20
- * @see Docs https://vue.chakra-ui.com/docs/data-display/badge
21
- */
22
- export const CBadge = defineComponent ( {
18
+ const CBadgeImpl = defineComponent ( {
23
19
props : {
24
20
as : {
25
21
type : [ Object , String ] as PropType < DOMElements > ,
@@ -54,3 +50,11 @@ export const CBadge = defineComponent({
54
50
}
55
51
} ,
56
52
} )
53
+
54
+ /**
55
+ * Vue component used to display notifications, messages, or
56
+ * statuses in different shapes and sizes.
57
+ *
58
+ * @see Docs https://vue.chakra-ui.com/docs/data-display/badge
59
+ */
60
+ export const CBadge = CBadgeImpl as ComponentWithProps < DeepPartial < BadgeProps > >
You can’t perform that action at this time.
0 commit comments