@baseplate-dev/ui-components
Version:
Shared UI component library
21 lines • 994 B
TypeScript
import type { VariantProps } from 'class-variance-authority';
import type React from 'react';
declare const badgeVariants: (props?: ({
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
/**
* Displays a badge or a component that looks like a badge.
*
* -- Added BadgeWithIcon variation
*
* https://ui.shadcn.com/docs/components/badge
*/
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
asChild?: boolean;
}): React.ReactElement;
export interface BadgeWithIconProps extends React.ComponentProps<typeof Badge> {
icon?: (props: React.SVGProps<SVGSVGElement>) => React.ReactNode;
}
declare function BadgeWithIcon({ icon: Icon, className, children, ...rest }: BadgeWithIconProps): React.JSX.Element;
export { Badge, badgeVariants, BadgeWithIcon };
//# sourceMappingURL=badge.d.ts.map