Skip to content

Components Display

Badge

A small label.

$ pyblade ui:add badge

Variants

With an icon

Props

Written as attributes of <pb-ui.badge>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.

NameTypeDefaultDescription
variant str "primary" primary, secondary, neutral, outline, soft, info, success, warning, error
class str "" Added to the classes of the component. Every other attribute is spread on it too.