Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 22e12ce

Browse files
committed
feat(vue-layout): update Badge type definition
1 parent 17f1e80 commit 22e12ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/layout/src/badge.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ export interface BadgeProps
1515
extends HTMLChakraProps<'span'>,
1616
ThemingProps<'Badge'> {}
1717

18-
const CBadgeImpl = defineComponent({
18+
/**
19+
* Vue component used to display notifications, messages, or
20+
* statuses in different shapes and sizes.
21+
*
22+
* @see Docs https://vue.chakra-ui.com/docs/data-display/badge
23+
*/
24+
export const CBadge: ComponentWithProps<
25+
DeepPartial<BadgeProps>
26+
> = defineComponent({
1927
props: {
2028
as: {
2129
type: [Object, String] as PropType<DOMElements>,
@@ -50,11 +58,3 @@ const CBadgeImpl = defineComponent({
5058
}
5159
},
5260
})
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>>

0 commit comments

Comments
 (0)