UNPKG

@stratakit/react

Version:

A React component library for StrataKit

17 lines (16 loc) 748 B
import * as React from "react"; import type { Badge as IuiBadge } from "@itwin/itwinui-react"; import type { PolymorphicForwardRefComponent } from "./~utils.js"; type IuiBadgeProps = React.ComponentProps<typeof IuiBadge>; interface BadgeProps extends Pick<IuiBadgeProps, "backgroundColor" | "children"> { /** * PARTIALLY IMPLEMENTED: Only supports * `undefined`, `"primary"`, `"informational"`, `"positive"`, `"negative"`, `"warning"`. */ backgroundColor?: IuiBadgeProps["backgroundColor"]; /** No longer gets truncated if too long. */ children: IuiBadgeProps["children"]; } /** @see https://itwinui.bentley.com/docs/badge */ export declare const Badge: PolymorphicForwardRefComponent<"span", BadgeProps>; export {};