Badge

Ein Badge stellt kompakt zusätzliche Informationen wie Metadaten, Status oder Kategorien dar. Es unterstützt die schnelle Orientierung, ohne vom Hauptinhalt abzulenken.GitHubMarkdown
Value

Properties

PropertyTypeDefaultDescription
color"dark" | "light" | "dark-static" | "light-static" | "neutral" | "violet" | "green" | "blue" | "teal" | "lilac" | "navy" | "orange" | "red""neutral"The color of the badge.
isDisabledboolean-Whether the badge is disabled.
childrenReactNode-
wrapWithReactElement<unknown, string | JSXElementConstructor<any>>-
refRef<HTMLSpanElement>-Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see React Docs
keyKey-
classNamestring-The elements class name.

Events

PropertyTypeDefaultDescription
onPress((e: PressEvent) => void)-Handler that is called when the badge is pressed.
onClose((e: PressEvent) => void)-Handler that is called when the badges close icon is pressed.

Auf dieser Seite