OptionalcontentOptionalcssOptional classes to apply to the resulting trait UI element. Any clsx value is permissible.
OptionaliconsIcons associated with the trait.
Text that describes the trait.
OptionalonAn optional handler for when the pill is clicked. If a function is provided, then the pill will render as an interactive HTML element such as an anchor or a button. Parameters:
OptionalparentheticalAny information that should appear in parentheses after the main trait context info.
OptionalsignThe number sign (+ or -) for a numeric trait.
OptionalunitsThe localized units abbreviation.
OptionalunitsThe units key for CONFIG.DND5E purposes.
OptionalvalueA value associated with the trait.
Custom HTML content, to appear to the right of any specified icons and before any other content. This content is specifically rendered as HTML, unlike the more specific building blocks.