PyBlade/ui
Menu⌄
DocsComponentsBadge

Badge

A small status label.

1 file

Installation

pyblade-ui add badge

Usage

The tag <pb-ui.badge> is available in all your templates.

<pb-ui.badge variant="success">Paid</pb-ui.badge>

Examples

Variants

Props

PropDefault
variant'default'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.