Skip to content

PillView

A status badge/label control with 6 preset color themes, custom color support, and WCAG luminance calculations for accessible text contrast.

  • NuGet downloads for Shiny.Maui.Controls
PillView
<!-- Preset types -->
<shiny:PillView Text="Active" Type="Success" />
<shiny:PillView Text="Pending" Type="Warning" />
<shiny:PillView Text="Error" Type="Critical" />
<shiny:PillView Text="Info" Type="Info" />
<shiny:PillView Text="Notice" Type="Caution" />
<!-- Custom color (auto-calculates text and border) -->
<shiny:PillView Text="Custom" PillColor="#6366F1" />
<!-- Full override -->
<shiny:PillView Text="Manual" PillColor="#1E1E1E" PillTextColor="White" PillBorderColor="#444" />
PropertyTypeDefaultDescription
Textstring""Text displayed in the pill
TypePillTypeNonePreset theme
PillColorColor?nullCustom background (overrides Type)
PillTextColorColor?nullText color override (auto-calculated if null)
PillBorderColorColor?nullBorder color override (auto-calculated if null)
FontSizedouble12Text font size
CornerRadiusdouble12Corner radius
FontAttributesFontAttributesNoneBold, Italic, None
TypeBackgroundTextBorder
None#F3F4F6#374151#D1D5DB
Success#DCFCE7#166534#86EFAC
Info#DBEAFE#1E40AF#93C5FD
Warning#FEF9C3#854D0E#FDE047
Caution#FFEDD5#9A3412#FDBA74
Critical#FEE2E2#991B1B#FCA5A5
  • Setting PillColor auto-calculates contrast text color (WCAG luminance) and a darkened border color
  • Setting PillTextColor overrides auto-calculated text color
  • Setting PillBorderColor overrides auto-calculated border color
  • Setting Type applies the preset; PillTextColor/PillBorderColor still override if set
claude plugin marketplace add shinyorg/skills
claude plugin install shiny-maui@shiny

Coming soon — Copilot plugin install instructions will be added here.

View shiny-maui Plugin