AnyLumino
API referenceastryxinputs

Badge

Render a compact status or category badge.

Astryx Props

JSON-safe Badge props forwarded to Astryx.

Supported Astryx props include:

  • variant ('neutral' or 'info' or 'success' or 'warning' or 'error' or 'blue' or 'cyan' or 'green' or 'orange' or 'pink' or 'purple' or 'red' or 'teal' or 'yellow'): Visual style variant. Semantic variants (neutral, info, success, warning, error) use solid backgrounds. Non-semantic color variants use tinted backgrounds with colored text for categorization and tagging.
  • label (ReactNode): Badge text content.
  • icon (ReactNode): Optional leading icon.

Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.

See Astryx component docs: https://astryx.atmeta.com/components/Badge.

Functions

constructor__init__(label, *, variant='neutral', **props) -> None
paramlabelstr

Visible or accessible label for the component.

paramvariantstr
= 'neutral'

Astryx visual variant.

parampropsAny
= {}

Returns

None

On this page