ClerkBadgeType

Defines the visual styling options for Badge components.

Each type corresponds to a different color scheme and border treatment:

  • Primary: Primary brand colors with no border

  • Secondary: Muted colors with visible border

  • Positive: Success/positive state colors with matching border

  • Negative: Error/danger state colors with matching border

  • Warning: Warning state colors with matching border

Entries

Link copied to clipboard

Primary brand styling with no border

Link copied to clipboard

Secondary styling with muted colors and border

Link copied to clipboard

Positive/success state styling with green color scheme

Link copied to clipboard

Negative/error state styling with red color scheme

Link copied to clipboard

Warning state styling with yellow/orange color scheme

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.