Static Badge - Svelte Shields

Props #

Types #

Examples #

Basic usage #

badgeContent may be the name of an unscoped package like package-name or a scoped package like @author/package-name.

tag can be next, v1, v2, beta, etc.

Badge for any_text-you_like-blue Badge for just the message-8a2be2

Style #

Possible values: flat, flat-square, plastic, for-the-badge, social. If not specified, the default style for this badge is "flat".

Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue

Color #

Background color of the right part (hex, rgb, rgba, hsl, hsla and css named colors supported).

Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue Badge for any_text-you_like-blue

Logo & Label #

Badge for Svelte-blue

Link #

Specify what clicking on the left/right of a badge should do.

Dynamic #

Badge for status-loading-yellowBadge for status-loading-yellow

Other #

cacheSeconds is HTTP cache lifetime (rules are applied to infer a default value on a per-badge basis, any values specified below the default will be ignored).

Badge for any_text-you_like-blue