Skip to main content

badge

Documentation / ui/badge

BadgeProps

Defined in: app/components/ui/badge.tsx:26

Extends

  • HTMLAttributes<HTMLDivElement>.VariantProps<typeof badgeVariants>

Properties

PropertyTypeInherited fromDefined in

variant?

"default" | "outline" | "destructive" | "secondary"

VariantProps.variant

app/components/ui/badge.tsx:10


badgeVariants()

const badgeVariants: (props?: ConfigVariants<{
variant: {
default: string;
destructive: string;
outline: string;
secondary: string;
};
}> & ClassProp) => string;

Defined in: app/components/ui/badge.tsx:6

Parameters

ParameterType

props?

ConfigVariants<{ variant: { default: string; destructive: string; outline: string; secondary: string; }; }> & ClassProp

Returns

string


Badge()

function Badge(__namedParameters: BadgeProps): Element;

Defined in: app/components/ui/badge.tsx:30

Parameters

ParameterType

__namedParameters

BadgeProps

Returns

Element