UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 1.05 kB
{"version":3,"file":"badge.cjs","names":["createComponent","badgeStyle"],"sources":["../../../../src/components/badge/badge.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { BadgeStyle } from \"./badge.style\"\nimport { createComponent } from \"../../core\"\nimport { badgeStyle } from \"./badge.style\"\n\nexport interface BadgeProps\n extends HTMLStyledProps<\"span\">,\n ThemeProps<BadgeStyle> {}\n\nconst {\n PropsContext: BadgePropsContext,\n usePropsContext: useBadgePropsContext,\n withContext,\n} = createComponent<BadgeProps, BadgeStyle>(\"badge\", badgeStyle)\n\nexport { BadgePropsContext, useBadgePropsContext }\n\n/**\n * `Badge` is a component that emphasizes the status of an item to make it immediately recognizable.\n *\n * @see https://yamada-ui.com/docs/components/badge\n */\nexport const Badge = withContext(\"span\")()\n"],"mappings":";;;;;;;AAWA,MAAM,EACJ,cAAc,mBACd,iBAAiB,sBACjB,gBACEA,yCAAwC,SAASC,+BAAW;;;;;;AAShE,MAAa,QAAQ,YAAY,OAAO,EAAE"}