A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color here.
PBPill("default")
PBPill("success", variant: .success) PBPill("error", variant: .error) PBPill("warning", variant: .warning) PBPill("info", variant: .info) PBPill("neutral", variant: .neutral) PBPill("primary", variant: .primary)
String
Variant
.neutral
.error
.info
.primary
.success
.warning