Talos docs

LabelProps

Since 0.6
Plain text

Signature

export interface LabelProps {
  /** Show this key instead of the component's. */
  textKey?: string
  /** Do not show the label until an event asks for it. */
  hidden?: boolean
  /** Event name → the key to show (or null to hide). */
  setText?: Record<string, string | null>
  /** A string table, when the host does not provide one. */
  strings?: Record<string, string>
}

Import: import type { LabelProps } from "@argus/gameplay"

Members

MemberSignatureDescription
textKeytextKey?: stringShow this key instead of the component's.
hiddenhidden?: booleanDo not show the label until an event asks for it.
setTextsetText?: Record<string, string | null>Event name → the key to show (or null to hide).
stringsstrings?: Record<string, string>A string table, when the host does not provide one.