@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
18 lines (14 loc) • 619 B
JavaScript
"use client";
import { createComponent } from "../../core/components/create-component.js";
import { badgeStyle } from "./badge.style.js";
//#region src/components/badge/badge.tsx
const { PropsContext: BadgePropsContext, usePropsContext: useBadgePropsContext, withContext } = createComponent("badge", badgeStyle);
/**
* `Badge` is a component that emphasizes the status of an item to make it immediately recognizable.
*
* @see https://yamada-ui.com/docs/components/badge
*/
const Badge = withContext("span")();
//#endregion
export { Badge, BadgePropsContext, useBadgePropsContext };
//# sourceMappingURL=badge.js.map